@xylabs/assert
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -1,3 +0,3 @@ | ||
type AssertExMessageFunc<T> = (value?: T | null) => string; | ||
type AssertExErrorFunc<T, R extends Error> = (value?: T | null) => R; | ||
export type AssertExMessageFunc<T> = (value?: T | null) => string; | ||
export type AssertExErrorFunc<T, R extends Error> = (value?: T | null) => R; | ||
declare function assertEx<T>(expr: T | null | undefined): T; | ||
@@ -7,3 +7,3 @@ declare function assertEx<T>(expr: T | null | undefined, message?: string): T; | ||
declare function assertEx<T, R extends Error>(expr: T | null | undefined, errorFunc?: AssertExErrorFunc<T, R>): T; | ||
export { type AssertExErrorFunc, type AssertExMessageFunc, assertEx }; | ||
export { assertEx }; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@xylabs/assert", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries", | ||
@@ -38,4 +38,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^4.0.0", | ||
"@xylabs/tsconfig": "^4.0.0", | ||
"@xylabs/ts-scripts-yarn3": "^4.0.7", | ||
"@xylabs/tsconfig": "^4.0.7", | ||
"typescript": "^5.5.4" | ||
@@ -42,0 +42,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
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
16027
9