typescanner
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "typescanner", | ||
"version": "0.3.0", | ||
"description": "A simple library for implementing type guards in TypeScript.", | ||
"version": "0.3.1", | ||
"description": "A simple library for implementing type guard in TypeScript.", | ||
"author": "yona3", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -154,7 +154,7 @@ # typescanner | ||
// success | ||
const data = scan(foo, isFoo); | ||
const data = scan(foo as unknown, isFoo); | ||
data.a // OK | ||
// Error! | ||
const data = scan(bar, isFoo); // Error: type assertion is failed. | ||
const data = scan(bar as unknown, isFoo); // Error: value.key does not meet the condition. | ||
``` | ||
@@ -184,2 +184,6 @@ | ||
// isObject | ||
isObject(value) // (value: unknown) => value is { [P in keyof T]?: unknown } | ||
// isArray | ||
@@ -186,0 +190,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
231
23003
21
231
1