Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hotypes

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hotypes

Higer order types for TypeScript

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
increased by59.31%
Maintainers
1
Weekly downloads
 
Created
Source

hotypes

Higer order types for TypeScript in the real world.

Motivation

TypeScripts type system is Turing-complete.

This means that if you don't follow the real-world use cases to create high-order types, you will create a lot of useless new macros.

Some people, when confronted with a type problem, think "I know, I'll use advanced types." Now they have two type problems.

This means that higher-order types are difficult, so we should not further complicate or mystify them.

Install

npm install --save hotypes
# or
yarn add hotypes

API

It is highly recommended to read test cases to make sure you understand what types exactly do.

  • ConsntructorReturnType
  • Constructor
  • Equals
  • ExcludeKeysStrict
  • ExcludeKeys
  • ExcludeNullable
  • FunctionKeys
  • Getter
  • Head
  • KeysStrict
  • Keys
  • Last
  • MapNullablePropsToNonNullableProps
  • MapNullablePropsToOptionalProps
  • MapPropsStrict
  • MapProps
  • NonEmptyArray
  • NonNullableKeys
  • Nullable
  • PickNonNever
  • Tail
  • UnpackedArrayLike
  • UnpackedArray
  • UnpackedPromiseLike
  • UnpackedPromise

Keywords

FAQs

Package last updated on 17 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc