@xylabs/assert
Advanced tools
Comparing version 3.6.12 to 4.0.0
@@ -1,3 +0,3 @@ | ||
export type AssertExMessageFunc<T> = (value?: T | null) => string; | ||
export type AssertExErrorFunc<T, R extends Error> = (value?: T | null) => R; | ||
type AssertExMessageFunc<T> = (value?: T | null) => string; | ||
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 { assertEx }; | ||
//# sourceMappingURL=index.d.ts.map | ||
export { type AssertExErrorFunc, type AssertExMessageFunc, assertEx }; |
@@ -16,19 +16,12 @@ { | ||
".": { | ||
"require": { | ||
"types": "./dist/neutral/index.d.cts", | ||
"default": "./dist/neutral/index.cjs" | ||
}, | ||
"import": { | ||
"types": "./dist/neutral/index.d.ts", | ||
"default": "./dist/neutral/index.mjs" | ||
} | ||
"types": "./dist/neutral/index.d.ts", | ||
"default": "./dist/neutral/index.mjs" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/neutral/index.cjs", | ||
"types": "./dist/neutral/index.d.ts", | ||
"module": "./dist/neutral/index.mjs", | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.15.14", | ||
"@xylabs/tsconfig": "^3.15.14", | ||
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15", | ||
"@xylabs/tsconfig": "^4.0.0-rc.15", | ||
"typescript": "^5.5.4" | ||
@@ -54,4 +47,4 @@ }, | ||
"sideEffects": false, | ||
"version": "3.6.12", | ||
"version": "4.0.0", | ||
"type": "module" | ||
} |
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
15240
8
59