Options
All
  • Public
  • Public/Protected
  • All
Menu

Module is

Index

Type aliases

EqualityError

EqualityError: object

Type declaration

  • _tag: "NotEqual"
  • to: unknown
  • value: unknown

TypeMismatchError

TypeMismatchError: object

Type declaration

Variables

Const array

array: object = predicate("object")(Array.isArray)

Type declaration

Const bigint

bigint: object = of("bigint")

Type declaration

Const boolean

boolean: object = of("boolean")

Type declaration

Const func

func: object = of("function")

Type declaration

Const number

number: object = of("number")

Type declaration

Const object

object: object = chain(of("object") as Parser<object, TypeMismatchError | EqualityError, unknown>, e =>e === null ? fail({ _tag: "NotEqual", to: null, value: e } as EqualityError) : succeed(e))

Type declaration

Const string

string: object = of("string")

Type declaration

Const symbol

symbol: object = of("symbol")

Type declaration

Const undef

undef: object = of("undefined")

Type declaration

Functions

equalTo

  • equalTo<K, I>(object: K): Parser<K, string, I>
  • Check that the input value is equal to object (_.isEqual, works with objects).

    Type parameters

    • K

    • I

    Parameters

    • object: K

    Returns Parser<K, string, I>

of

Generated using TypeDoc