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.
Install
$ npm install type-fest
Usage
import {Omit} from 'type-fest';
type Foo = {
unicorn: string;
rainbow: boolean;
};
type FooWithoutRainbow = Omit<Foo, 'rainbow'>;
//=> {unicorn: string}
API
See the types file.
License
(MIT OR CC0-1.0)