Skip to content

Class: TypeSignature

Represents an explicit type signature declaration for a function or variable.

Example

ts
add :: Int -> Int -> Int

Constructors

Constructor

new TypeSignature(identifier, body, loc?): TypeSignature

Parameters

ParameterType
identifierSymbolPrimitive
bodyType
loc?SourceLocation

Returns

TypeSignature

Overrides

ASTNode.constructor