Struct
Index
Constructor
Module
inherited__call__
Callable property
inherited__inspect__
When defined, returns a custom string representation. To be useful, it should be bound to a prototype (ex: Struct)
readonlytypeName
The factory type constant
inherited__decode__
Returns the decoded
input,Result.OkorResult.Error()
inherited__encode__
Returns the encoded
input
inherited__schema__
Returns the JSONSchema corresponding to the decoded type
inheritedasInstance
Try to convert anyValue to enum value or else returns
Option.None
inheritedasString
Converts the given value to a String.
create
Construct a new model
inheritedhasInstance
Return
trueif the given value is an instance of the class.
Other
DefineParameters
Type parameters
- Model: Struct<{ _: string }>
optionalinherited__inspect__
When defined, returns a custom string representation. To be useful, it should be bound to a prototype (ex: Struct)
optionalinheritedhasInstance
typeName
Type string representation
optionalinherited__decode__
Returns the decoded
input,Result.OkorResult.Error()
optionalinherited__encode__
Returns the encoded
input
optionalinherited__schema__
Returns the JSONSchema corresponding to the decoded type
optionalinheritedasInstance
Try to convert anyValue to enum value or else returns
Option.None
optionalinheritedasString
Converts the given value to a String.
ModuleParameter
Type parameters
- T
Parameters
Extract all parameters to create a new Struct
Type parameters
- Model
type
type
The type property discriminator
create
Return a new Struct from
properties. Struct adds debugging / inspecting abilities
define
Return a new
Structdefault factory See Module for additional properties added to the constructor
Construct a new model