Require none of the specified properties.
Source object type
Keys that must not be present
1.1.0
Explicitly disallows a set of properties by forcing them to never. Useful for mutually exclusive object shapes.
never
type Test = { a?: string; b?: number; c: boolean };type Result = RequireNone< Test, 'a' | 'b' >;// { c: boolean; a?: never; b?: never; } Copy
type Test = { a?: string; b?: number; c: boolean };type Result = RequireNone< Test, 'a' | 'b' >;// { c: boolean; a?: never; b?: never; }
Require none of the specified properties.