@mike-north/types
TypeScript type
s, interface
s and class
es I often use.
Types
-
Deferred<T>
- An abstraction of "work in progress". An invertedPromise<T>
-
ConstructorArgs<T>
- Extract the arguments from a class constructor -
AsyncMethodReturns<T>
- Promisify the return values of all methods on a type -
ExtractPropertyNamesOfType<T, S>
- Create a string literal type, representing the names of all properties on a type T whose values are assignable to S -
RequiredProps<T, S>
- Make properties whose names are assignable to S on object T required -
OptionalProps<T, S>
- Make properties whose names are assignable to S on object T optional -
OptionalPropertyNamesOf<T>
- Get the names of optional properties of T -
RequiredPropertyNamesOf<T>
- Get the names of required properties of T
(c) 2018 Mike North