UNPKG

types-testing

Version:

Test TypeScript types at test runner runtime - Works seamlessly with Jest, Vitest, and Bun.

13 lines (12 loc) 427 B
import type { NotProvided } from './__internal/not-provided'; import type { Assertions } from './assertions'; /** * Returns assertion functions for checking types. */ export type ExpectType = /** * @template Received The received type. * @param received The received value (only the value type will be used). * @returns Set of assertions object. */ <Received = NotProvided>(received?: Received) => Assertions<Received>;