@xylabs/assert 4.0.3 → 4.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- type AssertExMessageFunc<T> = (value?: T | null) => string;
2
- type AssertExErrorFunc<T, R extends Error> = (value?: T | null) => R;
1
+ export type AssertExMessageFunc<T> = (value?: T | null) => string;
2
+ export type AssertExErrorFunc<T, R extends Error> = (value?: T | null) => R;
3
3
  declare function assertEx<T>(expr: T | null | undefined): T;
4
4
  declare function assertEx<T>(expr: T | null | undefined, message?: string): T;
5
5
  declare function assertEx<T>(expr: T | null | undefined, messageFunc?: AssertExMessageFunc<T>): T;
6
6
  declare function assertEx<T, R extends Error>(expr: T | null | undefined, errorFunc?: AssertExErrorFunc<T, R>): T;
7
-
8
- export { type AssertExErrorFunc, type AssertExMessageFunc, assertEx };
7
+ export { assertEx };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,KAAK,MAAM,CAAA;AACjE,MAAM,MAAM,iBAAiB,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,KAAK,CAAC,CAAA;AAW3E,iBAAS,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,CAAA;AAEnD,iBAAS,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,CAAA;AACrE,iBAAS,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,WAAW,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AACzF,iBAAS,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAA;AAczG,OAAO,EAAE,QAAQ,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/assert",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -35,8 +35,8 @@
35
35
  "module": "./dist/neutral/index.mjs",
36
36
  "types": "./dist/neutral/index.d.ts",
37
37
  "devDependencies": {
38
- "@xylabs/ts-scripts-yarn3": "^4.0.0",
39
- "@xylabs/tsconfig": "^4.0.0",
38
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
39
+ "@xylabs/tsconfig": "^4.0.7",
40
40
  "typescript": "^5.5.4"
41
41
  },
42
42
  "engines": {