Tag
Index
Interfaces
Functions
Interfaces
Module
typeName
__call__
Callable property
__inspect__
When defined, returns a custom string representation. To be useful, it should be bound to a prototype (ex: Struct)
__decode__
Returns the decoded
input
,Result.Ok
orResult.Error()
__encode__
Returns the encoded
input
__schema__
Returns the JSONSchema corresponding to the decoded type
asInstance
Try to convert anyValue to enum value or else returns
Option.None
asString
Converts the given value to a String.
hasInstance
Return
true
if the given value is an instance of the class.
unwrap
Convert a tagged value to the underlying type
wrap
Convert an underlying type to a tagged type
Parameters
Type module constructor parameters
Type parameters
- T
optional__inspect__
When defined, returns a custom string representation. To be useful, it should be bound to a prototype (ex: Struct)
hasInstance
typeName
Type string representation
optional__decode__
Returns the decoded
input
,Result.Ok
orResult.Error()
optional__encode__
Returns the encoded
input
optional__schema__
Returns the JSONSchema corresponding to the decoded type
optionalasInstance
Try to convert anyValue to enum value or else returns
Option.None
optionalasString
Converts the given value to a String.
Functions
define
Returns a new Tag module
Type parameters
- From
- To
Convert an underlying type to a tagged type Alias to
wrap(value)