hotypes
Higher-order types for TypeScript in the real world.
hotypes
contains these types:
- A new type is a modified type from another type.
- A new type is an operator or a function.
- A new type is an internal type extractor.
Install
npm install --save hotypes
yarn add hotypes
API
- Equals
- Head
- Last
- Tail
- Flatten
- FlattenDeep
- FunctionKeys
- NonNullableKeys
- NullableKeys
- OptionalKeys
- KeysByType
- KeysByExactType
- KeysExcludeByType
- KeysExcludeByExactType
- MapAllProps
- MapPropsByKey
- MapPropsByType
- MapPropsByExactType
- MapNullablePropsToOptionalNullable
- MapNullablePropsToOptional
- MapPropsToRequiredByKey
- MapPropsToOptionalByKey
- MapPropsToNonNullable
- Mixin
- MixinAll
- PickNonNever
- Pop
- OmitPropsByType
- OmitPropsByExactType
- Replace
- ReplacePropsByKey
- ReplacePropsByType
- WithDefault
- NonCallable
- ReturnTypeOfConstructor
- UnpackedArray
- UnpackedArrayLike
- UnpackedIterable
- UnpackedAsyncIterable
- UnpackedPromise
- UnpackedPromiseLike
The Unpacked
prefix comes from this official article