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

funtypes

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

funtypes - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

lib/types/KeyOf.d.ts

12

.size-snapshot.json
{
"index.js": {
"bundled": 27001,
"minified": 17436,
"gzipped": 5470
"bundled": 27341,
"minified": 17663,
"gzipped": 5534
},
"index.mjs": {
"bundled": 26579,
"minified": 17323,
"gzipped": 5427,
"bundled": 26898,
"minified": 17555,
"gzipped": 5501,
"treeshaked": {

@@ -12,0 +12,0 @@ "rollup": {

@@ -16,2 +16,3 @@ export { AsyncContract } from './asynccontract';

export { Intersect } from './types/intersect';
export { KeyOf } from './types/KeyOf';
export { Lazy } from './types/lazy';

@@ -18,0 +19,0 @@ export type { LiteralValue } from './types/literal';

@@ -774,2 +774,14 @@ "use strict";

(exports.Intersect = Intersect),
(exports.KeyOf = e => {
const t = new Set(Object.keys(e)),
r = [...t]
.sort()
.map(e => showValue(e))
.join(" | ");
return create(
"keyOf",
e => (t.has("number" == typeof e ? e.toString() : e) ? success(e) : expected(r, e)),
{ keys: t, show: e => parenthesize(r, e) },
);
}),
(exports.Lazy = e => {

@@ -776,0 +788,0 @@ const t = lazyValue(e);

{
"name": "funtypes",
"version": "4.1.0",
"version": "4.2.0",
"description": "Runtime validation for static types",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -18,2 +18,3 @@ export { AsyncContract } from './asynccontract';

export { Intersect } from './types/intersect';
export { KeyOf } from './types/KeyOf';
export { Lazy } from './types/lazy';

@@ -20,0 +21,0 @@ export type { LiteralValue } from './types/literal';

Sorry, the diff of this file is not supported yet

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