Many of the types here should have been built-in.
Either add this package as a dependency or copy-paste the needed types. No credit required.
PR welcome for additional commonly needed types and docs improvements.
$ npm install type-fest
import {Omit} from 'type-fest';
type Foo = {
unicorn: string;
rainbow: boolean;
};
type FooWithoutRainbow = Omit<Foo, 'rainbow'>;
//=> {unicorn: string}
See the types file.
(MIT OR CC0-1.0)