Ts.Assert.parameter5.equiv
Import
import { Ts } from '@wollybeard/kit'
// Access via namespace
Ts.Assert.parameter5.equivimport { equiv } from '@wollybeard/kit/ts'Functions
[F] noExcessAs
<$Type>(): DispatchAfterInput<State.SetExpectedType<State.SetRelator<State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>, EquivNoExcessKind>, $Type>>[F] ofAs
<$Type>(): DispatchAfterInput<State.SetExpectedType<State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>, $Type>>Constants
[C] any
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetAllowAny<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>
>,
any
>
>[C] bigint
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
bigint
>
>[C] boolean
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
boolean
>
>[C] Date
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
Date
>
>[C] Error
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
Error
>
>[C] never
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetAllowNever<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>
>,
never
>
>[C] noExcess
InputExpectedAsValueNarrow<
State.SetRelator<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
EquivNoExcessKind
>
>[C] null
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
null
>
>[C] number
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
number
>
>[C] of
InputExpectedAsValueNarrow<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>
>[C] RegExp
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
RegExp
>
>[C] string
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
string
>
>[C] symbol
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
symbol
>
>[C] undefined
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>,
undefined
>
>[C] unknown
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetAllowUnknown<
State.SetRelator<State.AddExtractor<State.Empty, Parameter5>, EquivKind>
>,
unknown
>
>Types
[T] any
type any_<$Actual> = Kind.Apply<
EquivKind,
[any, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for any. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.any<(arg: any) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.any<(arg: string) => any>[T] bigint
type bigint_<$Actual> = Kind.Apply<
EquivKind,
[bigint, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for bigint. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.bigint<(arg: bigint) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.bigint<(arg: string) => any>[T] boolean
type boolean_<$Actual> = Kind.Apply<
EquivKind,
[boolean, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for boolean. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.boolean<(arg: boolean) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.boolean<(arg: string) => any>[T] Date
type Date_<$Actual> = Kind.Apply<
EquivKind,
[Date, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for Date. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.Date<(arg: Date) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.Date<(arg: string) => any>[T] Error
type Error_<$Actual> = Kind.Apply<
EquivKind,
[Error, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for Error. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.Error<(arg: Error) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.Error<(arg: string) => any>[T] never
type never_<$Actual> = Kind.Apply<
EquivKind,
[never, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for never. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.never<(arg: never) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.never<(arg: string) => any>[T] noExcess
type noExcess_<$Expected, $Actual> = Kind.Apply<
EquivNoExcessKind,
[$Expected, Kind.Apply<Path.Parameter5, [$Actual]>]
>No-excess variant of equiv relation. Checks that actual has no excess properties beyond expected.
[T] null
type null_<$Actual> = Kind.Apply<
EquivKind,
[null, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for null. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.null<(arg: null) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.null<(arg: string) => any>[T] number
type number_<$Actual> = Kind.Apply<
EquivKind,
[number, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for number. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.number<(arg: number) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.number<(arg: string) => any>[T] of
type of_<$Expected, $Actual> = Kind.Apply<
EquivKind,
[$Expected, Kind.Apply<Path.Parameter5, [$Actual]>]
>parameter5 + equiv relation matchers.
Extraction: extracts the fifth parameter type from a function Relation: mutual assignability (equivalent types)
[T] RegExp
type RegExp_<$Actual> = Kind.Apply<
EquivKind,
[RegExp, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for RegExp. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.RegExp<(arg: RegExp) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.RegExp<(arg: string) => any>[T] string
type string_<$Actual> = Kind.Apply<
EquivKind,
[string, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for string. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.string<(arg: string) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.string<(arg: number) => any>[T] symbol
type symbol_<$Actual> = Kind.Apply<
EquivKind,
[symbol, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for symbol. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.symbol<(arg: symbol) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.symbol<(arg: string) => any>[T] undefined
type undefined_<$Actual> = Kind.Apply<
EquivKind,
[undefined, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for undefined. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.undefined<(arg: undefined) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.undefined<(arg: string) => any>[T] unknown
type unknown_<$Actual> = Kind.Apply<
EquivKind,
[unknown, Kind.Apply<Path.Parameter5, [$Actual]>]
>Pre-curried matcher for unknown. Extraction chain: (p1: any, p2: any, p3: any, p4: any, p5: T) = any → T
Examples:
// ✓ Pass
type _ = Assert.parameter5.equiv.unknown<(arg: unknown) => any>
// ✗ Fail
type _ = Assert.parameter5.equiv.unknown<(arg: string) => any>