# hotypes

> Higher order types for TypeScript

Latest version **0.6.5** (published 2025-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install hotypes
pnpm add hotypes
yarn add hotypes
bun add hotypes
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.6.5 |
| Published | 2025-07-03 |
| First published | 2021-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 34.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | BlackGlory |
| Maintainers | black_glory |
| Keywords | higher-order, types, typescript, hot |

## Links

- npm: https://www.npmjs.com/package/hotypes
- Repository: https://github.com/BlackGlory/hotypes
- Homepage: https://github.com/BlackGlory/hotypes#readme
- Issues: https://github.com/BlackGlory/hotypes/issues
- npm.io page: https://npm.io/package/hotypes

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.6.5 (latest) — 2025-07-03
- 0.6.4 — 2023-10-02
- 0.6.3 — 2023-07-14
- 0.6.2 — 2023-06-11
- 0.6.1 — 2023-03-19
- 0.6.0 — 2023-02-15
- 0.5.1 — 2022-11-12
- 0.5.0 — 2022-09-13
- 0.4.8 — 2022-08-31
- 0.4.7 — 2022-08-24
- 0.4.6 — 2022-08-18
- 0.4.5 — 2022-08-01
- 0.4.4 — 2022-03-20
- 0.4.3 — 2021-11-18
- 0.4.2 — 2021-08-10
- … 20 more at https://npm.io/package/hotypes/versions

## 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
```sh
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](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#type-inference-in-conditional-types)*

---
_Source: https://npm.io/package/hotypes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
