Skip to main content

expect

Overload 1

export function expect(check: Check<T>): Expect<T>

Arguments

NameTypeDescription
checkCheck<T>

Return value

Expect<T>

Overload 2

export function expect(
  input: unknown,
  check: Check<T>
): T

Arguments

NameTypeDescription
inputunknown
checkCheck<T>

Return value

T

Overload 3

export function expect(
  input: unknown,
  check: Check<T>,
  msg: undefined | string
): T

Arguments

NameTypeDescription
inputunknown
checkCheck<T>
msgundefined | string

Return value

T