Ts.Assert.awaited.not.equiv
Import
import { Ts } from '@wollybeard/kit'
// Access via namespace
Ts.Assert.awaited.not.equivimport { equiv } from '@wollybeard/kit/ts'Functions
[F] ofAs
<$Type>(): DispatchAfterInput<State.SetExpectedType<State.SetRelator<State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>, EquivKind>, $Type>>Constants
[C] any
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetAllowAny<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>
>,
any
>
>[C] bigint
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>,
bigint
>
>[C] boolean
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>,
boolean
>
>[C] Date
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>,
Date
>
>[C] Error
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>,
Error
>
>[C] never
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetAllowNever<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>
>,
never
>
>[C] null
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>,
null
>
>[C] number
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>,
number
>
>[C] of
InputExpectedAsValueNarrow<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>
>[C] RegExp
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>,
RegExp
>
>[C] string
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>,
string
>
>[C] symbol
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>,
symbol
>
>[C] undefined
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>,
undefined
>
>[C] unknown
InputActualAsValueNarrow<
State.SetExpectedType<
State.SetAllowUnknown<
State.SetRelator<
State.SetNegated<State.AddExtractor<State.Empty, Awaited$>>,
EquivKind
>
>,
unknown
>
>Types
[T] any
type any_<$Actual> = Kind.Apply<
EquivKind,
[any, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for any. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.any<Promise<any>>
// ✗ Fail
type _ = Assert.awaited.equiv.any<Promise<string>>[T] bigint
type bigint_<$Actual> = Kind.Apply<
EquivKind,
[bigint, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for bigint. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.bigint<Promise<bigint>>
// ✗ Fail
type _ = Assert.awaited.equiv.bigint<Promise<string>>[T] boolean
type boolean_<$Actual> = Kind.Apply<
EquivKind,
[boolean, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for boolean. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.boolean<Promise<boolean>>
// ✗ Fail
type _ = Assert.awaited.equiv.boolean<Promise<string>>[T] Date
type Date_<$Actual> = Kind.Apply<
EquivKind,
[Date, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for Date. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.Date<Promise<Date>>
// ✗ Fail
type _ = Assert.awaited.equiv.Date<Promise<string>>[T] Error
type Error_<$Actual> = Kind.Apply<
EquivKind,
[Error, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for Error. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.Error<Promise<Error>>
// ✗ Fail
type _ = Assert.awaited.equiv.Error<Promise<string>>[T] never
type never_<$Actual> = Kind.Apply<
EquivKind,
[never, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for never. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.never<Promise<never>>
// ✗ Fail
type _ = Assert.awaited.equiv.never<Promise<string>>[T] null
type null_<$Actual> = Kind.Apply<
EquivKind,
[null, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for null. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.null<Promise<null>>
// ✗ Fail
type _ = Assert.awaited.equiv.null<Promise<string>>[T] number
type number_<$Actual> = Kind.Apply<
EquivKind,
[number, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for number. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.number<Promise<number>>
// ✗ Fail
type _ = Assert.awaited.equiv.number<Promise<string>>[T] of
type of_<$Expected, $Actual> = Kind.Apply<
EquivKind,
[$Expected, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>awaited + equiv relation matchers.
Extraction: extracts the resolved type from a Promise Relation: mutual assignability (equivalent types)
[T] RegExp
type RegExp_<$Actual> = Kind.Apply<
EquivKind,
[RegExp, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for RegExp. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.RegExp<Promise<RegExp>>
// ✗ Fail
type _ = Assert.awaited.equiv.RegExp<Promise<string>>[T] string
type string_<$Actual> = Kind.Apply<
EquivKind,
[string, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for string. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.string<Promise<string>>
// ✗ Fail
type _ = Assert.awaited.equiv.string<Promise<number>>[T] symbol
type symbol_<$Actual> = Kind.Apply<
EquivKind,
[symbol, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for symbol. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.symbol<Promise<symbol>>
// ✗ Fail
type _ = Assert.awaited.equiv.symbol<Promise<string>>[T] undefined
type undefined_<$Actual> = Kind.Apply<
EquivKind,
[undefined, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for undefined. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.undefined<Promise<undefined>>
// ✗ Fail
type _ = Assert.awaited.equiv.undefined<Promise<string>>[T] unknown
type unknown_<$Actual> = Kind.Apply<
EquivKind,
[unknown, Kind.Apply<Path.Awaited$, [$Actual]>, true]
>Pre-curried matcher for unknown. Extraction chain: Promise → T
Examples:
// ✓ Pass
type _ = Assert.awaited.equiv.unknown<Promise<unknown>>
// ✗ Fail
type _ = Assert.awaited.equiv.unknown<Promise<string>>