/** * A function that asserts a value is of a specific type `T`. * * @template T The type to assert the value is. * @example Assertor = (value: unknown) => asserts value is string */ type Assertor = (value: unknown, ...args: P) => asserts value is T; export type { Assertor };