Tag
Index
Interfaces
Functions
Interfaces
Module
typeName
Re-exports typeName
__call__
Callable property
inspect
When defined, returns a custom string representation
asInstance
Try to convert anyValue to enum value or else returns
Option.None
codecDecode
Returns the decoded
input
,Result.Ok
orResult.Error()
codecEncode
Returns the encoded
input
codecSchema
Returns the JSONSchema corresponding to the decoded type
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
optionalasInstance
hasInstance
optionalinspect
typeName
optionalcodecDecode
Returns the decoded
input
,Result.Ok
orResult.Error()
optionalcodecEncode
Returns the encoded
input
optionalcodecSchema
Returns the JSONSchema corresponding to the decoded type
Functions
define
Returns a new Tag module
Type parameters
- From
- To
Convert an underlying type to a tagged type Alias to
wrap(value)