Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Form<T, U>

Type parameters

  • T

  • U = never

Hierarchy

Index

Constructors

constructor

  • new Form<T, U>(): Form<T, U>
  • Type parameters

    • T

    • U = never

    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

    • item: Item
    • Optional object: T

    Returns undefined | T

Abstract mold

  • mold(object: T | U, item?: Item): Item
  • Parameters

    • object: T | U
    • Optional item: Item

    Returns Item

withTag

  • withTag(tag: undefined | string): Form<T, U>
  • Parameters

    • tag: undefined | string

    Returns Form<T, U>

withUnit

  • withUnit(unit: undefined | T): Form<T, U>
  • Parameters

    • unit: undefined | T

    Returns Form<T, U>

Static forAny

  • Returns Form<AnyItem, never>

Static forBoolean

  • forBoolean(): Form<boolean, never>
  • Returns Form<boolean, never>

Static forItem

  • Returns Form<Item, AnyItem>

Static forNumber

  • forNumber(): Form<number, never>
  • Returns Form<number, never>

Static forString

  • forString(): Form<string, never>
  • Returns Form<string, never>

Static forValue

  • Returns Form<Value, AnyValue>

Generated using TypeDoc