
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@osdiab/io-ts-types
Advanced tools
A collection of runtime types and combinators for use with io-ts
To install the stable version:
npm i io-ts-types
Note. io-ts-types
depends on
starting from 0.5.0
you must install fp-ts
, io-ts
and monocle-ts
manually (fp-ts
, io-ts
and monocle-ts
are listed in peerDependency
)
Import specific codecs and combinators directly from the lib
folder, as in:
import { NonEmptyString } from "io-ts-types/lib/NonEmptyString"
In this way, you'll only need to add the monocle-ts
dependency if you import any of the combinators depending on it, like getLenses
The stable version is tested against TypeScript 3.2.2, but should run with TypeScript 3.0.1+ too
Note. If you are running < typescript@3.0.1
you have to polyfill unknown
.
You can use unknown-ts as a polyfill.
FAQs
A collection of codecs and combinators for use with io-ts
We found that @osdiab/io-ts-types demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.