The callable function type for asynchronous assertions.
This type represents the actual function signature of an async expect
function, created by mapping all available assertions to their respective
function signatures and combining them using intersection types. Each
assertion contributes its own overload to the final function type.
The function signatures are derived from the AssertionParts of each
assertion, with parameters that match the expected slots for natural language
assertion calls.
// Example function type derived from async assertions constexpectAsync:ExpectAsyncFunction<MyAsyncAssertions>=...; awaitexpectAsync(promise,'to resolve'); awaitexpectAsync(promise,'to resolve with value satisfying',expectedValue);
Template: AsyncAssertions
Array of async assertion objects that define
available assertion logic
See
ExpectFunction for the synchronous equivalent, with explanation of type union
SlotsFromParts for how assertion parts are converted to function parameters
The callable function type for asynchronous assertions.
This type represents the actual function signature of an async expect function, created by mapping all available assertions to their respective function signatures and combining them using intersection types. Each assertion contributes its own overload to the final function type.
The function signatures are derived from the AssertionParts of each assertion, with parameters that match the expected slots for natural language assertion calls.