subtractiontype.ts
Subtraction types for TypeScript: e.g. Sub<'a' | 'b', 'a'>
and Dissoc<{a: number, b: number}, 'a'>
.
Installation
npm install --save-dev subtractiontype.ts
Usage
// with modules // without modules (yes, it says 'import', but it still doesn't count as a module and you // don't have to repeat the type parameters like you would with `type = `)/// // string literal unions:
License
MIT