ts-gems 2.6.0 → 2.7.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/common.d.ts +3 -1
- package/package.json +1 -1
package/lib/common.d.ts
CHANGED
|
@@ -50,7 +50,9 @@ export type Awaited<T> = T extends PromiseLike<infer U> ? U : T;
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
export type Thunk<T, Args extends any[] = any[]> = T | ((...args: Args) => T);
|
|
53
|
-
export type
|
|
53
|
+
export type ThunkAsync<T, Args extends any[] = any[]> = Thunk<T> | ((...args: Args) => Promise<T>);
|
|
54
|
+
export type TypeThunk<T = any> = Thunk<Type<T>>;
|
|
55
|
+
export type TypeThunkAsync<T = any> = ThunkAsync<Type<T>>;
|
|
54
56
|
|
|
55
57
|
|
|
56
58
|
/**
|