The type() method of the Tag object can be used to get the sequence of data types associated with the tag.
type()None
An object with a property named parameters that references the array of data types associated with this Tag.
This is a copy of the type object that was originally passed into the Tag() constructor.
This code snippet creates a tag defining two data types and then retrieves them using type():
const tag = new WebAssembly.Tag({ parameters: ["i32", "i64"] });
console.log(tag.type());The object logged to the console will look like so:
{
"parameters": ["i32", "i64"]
}