utilium 0.6.2 → 0.6.3
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/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/types.ts +1 -1
package/dist/types.d.ts
CHANGED
@@ -165,7 +165,7 @@ export type OptionalTuple<T extends unknown[]> = T extends [infer Head, ...infer
|
|
165
165
|
* Keys of a Map
|
166
166
|
*/
|
167
167
|
export type MapKeys<T> = T extends Map<infer K, any> ? K : never;
|
168
|
-
export type ClassLike<Instance =
|
168
|
+
export type ClassLike<Instance = any> = abstract new (...args: any[]) => Instance;
|
169
169
|
/**
|
170
170
|
* Converts a union to an intersection
|
171
171
|
* @see https://stackoverflow.com/a/55128956/17637456
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
@@ -202,7 +202,7 @@ export type OptionalTuple<T extends unknown[]> = T extends [infer Head, ...infer
|
|
202
202
|
*/
|
203
203
|
export type MapKeys<T> = T extends Map<infer K, any> ? K : never;
|
204
204
|
|
205
|
-
export type ClassLike<Instance =
|
205
|
+
export type ClassLike<Instance = any> = abstract new (...args: any[]) => Instance;
|
206
206
|
|
207
207
|
/**
|
208
208
|
* Converts a union to an intersection
|