@infra-blocks/types 0.23.0 → 0.24.0

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.
package/lib/cjs/func.d.ts CHANGED
@@ -36,7 +36,7 @@ export type Constructor<R = object, A extends any[] = any[]> = new (...args: A)
36
36
  /**
37
37
  * A convenient type declaration for handlers used to resolve "error" type events.
38
38
  */
39
- export type ErrorHandler<T extends Error = Error> = (err: T) => void;
39
+ export type ErrorHandler<T = unknown> = (err: T) => void;
40
40
  /**
41
41
  * A type alias for a function that creates objects of a given type.
42
42
  */
package/lib/esm/func.d.ts CHANGED
@@ -36,7 +36,7 @@ export type Constructor<R = object, A extends any[] = any[]> = new (...args: A)
36
36
  /**
37
37
  * A convenient type declaration for handlers used to resolve "error" type events.
38
38
  */
39
- export type ErrorHandler<T extends Error = Error> = (err: T) => void;
39
+ export type ErrorHandler<T = unknown> = (err: T) => void;
40
40
  /**
41
41
  * A type alias for a function that creates objects of a given type.
42
42
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infra-blocks/types",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Typescript types utility package.",
5
5
  "keywords": [
6
6
  "type",
@@ -39,13 +39,12 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@biomejs/biome": "^2.3.8",
42
- "@infra-blocks/test": "^0.5.0",
42
+ "@infra-blocks/test": "^0.6.0",
43
43
  "@types/mocha": "^10.0.1",
44
44
  "@types/node": "^24.10.1",
45
45
  "@typescript-eslint/eslint-plugin": "^5.59.8",
46
46
  "@typescript-eslint/parser": "^5.59.8",
47
47
  "c8": "^8.0.0",
48
- "conditional-type-checks": "^1.0.6",
49
48
  "expect-type": "^1.3.0",
50
49
  "lefthook": "^2.0.8",
51
50
  "mocha": "^10.2.0",