Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Form<number>
    • NumberForm

Index

Constructors

constructor

  • Parameters

    • Optional unit: number

    Returns NumberForm

Properties

Readonly tag

tag: undefined | string

Readonly unit

unit: undefined | number

Methods

cast

  • cast(item: Item, object?: number): undefined | number
  • Parameters

    • item: Item
    • Optional object: number

    Returns undefined | number

mold

  • mold(object: number, item?: Item): Item
  • Parameters

    • object: number
    • Optional item: Item

    Returns Item

withTag

  • withTag(tag: undefined | string): Form<number, never>
  • Parameters

    • tag: undefined | string

    Returns Form<number, never>

withUnit

  • withUnit(unit: undefined | number): Form<number, never>
  • Parameters

    • unit: undefined | number

    Returns Form<number, never>

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

Generated using TypeDoc