Link Search Menu Expand Document

Numeric overview

Added in v1.0.0


Table of contents


utils

Numeric (interface)

The class of types which can be converted to and from JS numbers

Signature

export interface Numeric<A> {
  readonly fromNumber: (a: number) => Option<A>
  readonly toNumber: (a: A) => number
}

Added in v1.0.0