Troubleshooting Handbook: Utilities
these are all built in, see source in es5.d.ts:
ConstructorParameters
: a tuple of class constructor's parameter typesExclude
: exclude a type from another typeExtract
: select a subtype that is assignable to another typeInstanceType
: the instance type you get from anew
ing a class constructorNonNullable
: excludenull
andundefined
from a typeParameters
: a tuple of a function's parameter typesPartial
: Make all properties in an object optionalReadonly
: Make all properties in an object readonlyReadonlyArray
: Make an immutable array of the given typePick
: A subtype of an object type with a subset of its keysRecord
: A map from a key type to a value typeRequired
: Make all properties in an object requiredReturnType
A function's return type
This section needs writing, but you can probably find a good starting point with Wes Bos' ESLint config (which comes with a YouTube intro).