Comparing version 4.1.0 to 4.2.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
276193
92
7649