Socket
Book a DemoInstallSign in
Socket

@common-fp/common-fp-types

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@common-fp/common-fp-types

Types for common-fp

0.1.0
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Common FP Types

This hosts the source for common-fp-types, which is an optional peer dependency to 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 along 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

Keywords

common-fp

FAQs

Package last updated on 22 Aug 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.