hotypes
TypeScript icon, indicating that this package has built-in type declarations

0.6.5 • Public • Published

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
  • ToStruct
  • Prettify

The Unpacked prefix comes from this official article

Package Sidebar

Install

npm i hotypes

Weekly Downloads

717

Version

0.6.5

License

MIT

Unpacked Size

35.3 kB

Total Files

187

Last publish

Collaborators

  • black_glory