@tstdl/base 0.92.26 → 0.92.27
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type Provider<T> = () => T;
|
|
2
2
|
export type AsyncProvider<T> = () => (T | Promise<T>);
|
|
3
|
-
export type ValueOrProvider<T> = T
|
|
4
|
-
export type ValueOrAsyncProvider<T> = T
|
|
3
|
+
export type ValueOrProvider<T> = T | Provider<T>;
|
|
4
|
+
export type ValueOrAsyncProvider<T> = T | Provider<T> | AsyncProvider<T>;
|
|
5
5
|
export type ResolvedValueOrProvider<T extends ValueOrAsyncProvider<any>> = T extends ValueOrAsyncProvider<infer U> ? U : never;
|
|
6
6
|
export declare function resolveValueOrProvider<T>(valueOrProvider: ValueOrProvider<T>): T;
|
|
7
7
|
/**
|