hotypes
v0.6.4
Published
Higher order types for TypeScript
Downloads
13,550
Maintainers
Readme
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
# or
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
- PropByPath
- OmitPropsByType
- OmitPropsByExactType
- Replace
- ReplacePropsByKey
- ReplacePropsByType
- WithDefault
- NonCallable
- ReturnTypeOfConstructor
- ParametersOfConstructor
- UnpackedArray
- UnpackedArrayLike
- UnpackedIterable
- UnpackedAsyncIterable
- UnpackedPromise
- UnpackedPromiseLike
The Unpacked
prefix comes from this official article