New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hkt-toolbelt

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hkt-toolbelt

A collection of useful HKT utilities and building blocks

  • 0.8.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
34
decreased by-63.44%
Maintainers
1
Weekly downloads
 
Created
Source

[HK-Types Toolbelt]


A higher-kinded-type companion to ts-toolbelt


This library is a companion to ts-toolbelt that provides higher-kinded-type versions of its functionality. This allows for more complex types to be constructed.

We aim to support hundreds of kind categories, including List, Boolean, String, Function, and more. We also provide a set of combinators for composing types.

(Full API Docs)


1. Installation

> npm install hkt-toolbelt

2. Usage

import $, { List, Conditional } from "hkt-toolbelt";

type Result = $<
  List.Filter<Conditional.SubtypeOf<number>>,
  [1, "foo", 2, 3, "bar"]
>; // [1, 2, 3]

Keywords

FAQs

Package last updated on 29 Oct 2022

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