Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions for testing and asserting membership in a tagged number range. See Tagged.

Type parameters

  • T: string

    a string-literal type to tag this with.

  • B

    the base type being tagged. This becomes the argument type for the as function which should only be passed objects of the base.

Hierarchy

  • DomainFns

Index

Properties

Properties

as

as: TypeAssertion<T, B>

An assertion that tests and casts. Throws if not suitable.

is

is: TypeGuard<Tagged<T, B>>

A type guard that tests for membership in the domain of the tagged type Tagged<T,B>.

to

to: TypeCoercion<Tagged<T, B>>

A coercion to this type.

Generated using TypeDoc