dilswer
Version:
Blazingly fast data validation library with TypeScript integration.
9 lines (8 loc) • 420 B
TypeScript
import type { BasicType } from "../data-types/type-types";
import { UnionType } from "../data-types/types/union";
import type { ExcludeOneOf } from "./types";
/**
* Excludes given basic Data Types from the OneOf Data Type.
* Similar to the Typescript's `Exclude<>` utility type.
*/
export declare const Exclude: <U extends UnionType<any[]>, E extends BasicType>(union: U, ...excludeTypes: E[]) => ExcludeOneOf<U, E>;