@hrnec06/util 1.4.21 → 1.4.23

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.
@@ -30,7 +30,7 @@ export type TypeOfMap = {
30
30
  "object": object;
31
31
  "function": Function;
32
32
  };
33
- export type ClassInitializer<C extends abstract new (...args: any) => any> = (new (...params: ConstructorParameters<C>) => InstanceType<C>);
33
+ export type ClassInitializer<C extends abstract new (...args: any) => any, Strict extends boolean = true> = Strict extends true ? (new (...params: ConstructorParameters<C>) => InstanceType<C>) : (new (...args: any[]) => InstanceType<C>);
34
34
  export declare namespace ReactUtils {
35
35
  type SetState<T> = React.Dispatch<React.SetStateAction<T>>;
36
36
  }
@@ -30,7 +30,7 @@ export type TypeOfMap = {
30
30
  "object": object;
31
31
  "function": Function;
32
32
  };
33
- export type ClassInitializer<C extends abstract new (...args: any) => any> = (new (...params: ConstructorParameters<C>) => InstanceType<C>);
33
+ export type ClassInitializer<C extends abstract new (...args: any) => any, Strict extends boolean = true> = Strict extends true ? (new (...params: ConstructorParameters<C>) => InstanceType<C>) : (new (...args: any[]) => InstanceType<C>);
34
34
  export declare namespace ReactUtils {
35
35
  type SetState<T> = React.Dispatch<React.SetStateAction<T>>;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hrnec06/util",
3
- "version": "1.4.21",
3
+ "version": "1.4.23",
4
4
  "description": "A set of utilities",
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",