Constructors
constructor
- new Form<T, U>(): Form<T, U>
-
Type parameters
Returns Form<T, U>
Properties
Readonly tag
tag: undefined | string
Readonly unit
unit: undefined | T
Methods
Abstract cast
- cast(item: Item, object?: T): undefined | T
-
Parameters
Returns undefined | T
Abstract mold
-
Parameters
-
object: T | U
-
Optional item: Item
withTag
- withTag(tag: undefined | string): Form<T, U>
-
Parameters
Returns Form<T, U>
withUnit
- withUnit(unit: undefined | T): Form<T, U>
-
Parameters
Returns Form<T, U>
Static forAny
-
Static forBoolean
- forBoolean(): Form<boolean, never>
-
Returns Form<boolean, never>
Static forItem
-
Static forNumber
- forNumber(): Form<number, never>
-
Returns Form<number, never>
Static forString
- forString(): Form<string, never>
-
Returns Form<string, never>
Static forValue
-