Skip to content
Anton edited this page Dec 26, 2019 · 11 revisions

A method is a piece of API exported by a package. Whereas what Typal refers to as functions are properties of types, a method is an independent piece of code that does not belong to a state.

Method extends Type: A representation of a type.

Name Type & Description Initial
constructor new () => Method
Constructor method.
return string void
The return type of the method. Returns void if no return was specified.
isMethod boolean true
Can be used to disambiguate methods from other types.
async boolean false
If the method is async.
Clone this wiki locally