StrictOmit¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/phet-core/blob/main/js/types/StrictOmit.ts for the most up-to-date information.
Overview¶
Type StrictOmit¶
Just like Omit, except it enforces the presence of omitted keys in the original type. i.e.: type X = { hello: number; hola: boolean; }; type Y1 = Omit<X, 'goodbye'>; // Wouldn't throw an error type Y2 = StrictOmit<X, 'goodbye'>; // Will throw an error
@author Michael Kauzmann (PhET Interactive Simulations) @author AgustÃn Vallejo (PhET Interactive Simulations)
Pick<ObjectType, Exclude<keyof ObjectType, KeysType>>
Source Code¶
See the source for StrictOmit.ts in the phet-core repository.