Link Search Menu Expand Document

Enum.Bounded.Cardinality overview

Added in v1.0.0


Table of contents


utils

Cardinality

Signature

export declare const Cardinality: {
  fromInt32: <A>(a: Int32) => Cardinality<A>
  toInt32: <A>(c: Cardinality<A>) => Int32
  of: <A>(n: Int32) => Cardinality<A>
}

Added in v1.0.0

Cardinality (type alias)

The size of the set of values inhabiting a type.

Signature

export type Cardinality<A> = { readonly [_Cardinality_]: unique symbol }

Added in v1.0.0