/** * Matches a type that is not any. * * @template T Type to match. * @returns The type that is not any. * @example * // When T is not any, the result is T. * NotAny // number * * // When T is any, the result is never. * NotAny // never */ type NotAny = any extends T ? never : T; export type { NotAny };