Socket
Book a DemoInstallSign in
Socket

common-fp-types

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-fp-types

Types for common-fp

0.1.3
latest
Source
npmnpm
Version published
Weekly downloads
168
16.67%
Maintainers
1
Weekly downloads
 
Created
Source

Common FP Types

This holds the types for common-fp.

I want to keep the types in a separate package for versioning purposes, as I don't use typescript regularly and haven't ironed out how I want to manage it.

Install

This package only ever makes sense with common-fp

$ npm i common-fp common-fp-types

Use

Note: common-fp redirects typescript to commom-fp-types

import { mapValues } from 'common-fp'

const incrementAll = mapValues((i: number) => i + 1)

const result = incrementAll('string is invalid')
// typescript shows you incrementAll can't take a string

You can also try it out in your browser.

Keywords

common

FAQs

Package last updated on 02 Sep 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.