@infra-blocks/types 0.13.1-alpha.0 → 0.14.0-alpha.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 +4 -0
- package/lib/esm/func.d.ts +4 -0
- package/package.json +1 -1
package/lib/cjs/func.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ export type Predicate<T> = (item: T) => boolean;
|
|
|
15
15
|
* A type alias for functions that return a value of a given type without arguments.
|
|
16
16
|
*/
|
|
17
17
|
export type Provider<T> = () => T;
|
|
18
|
+
/**
|
|
19
|
+
* A type alias for asynchronous provider functions.
|
|
20
|
+
*/
|
|
21
|
+
export type AsyncProvider<T> = () => Promise<T>;
|
|
18
22
|
/**
|
|
19
23
|
* A convenient type declaration for handlers used to resolve "error" type events.
|
|
20
24
|
*/
|
package/lib/esm/func.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ export type Predicate<T> = (item: T) => boolean;
|
|
|
15
15
|
* A type alias for functions that return a value of a given type without arguments.
|
|
16
16
|
*/
|
|
17
17
|
export type Provider<T> = () => T;
|
|
18
|
+
/**
|
|
19
|
+
* A type alias for asynchronous provider functions.
|
|
20
|
+
*/
|
|
21
|
+
export type AsyncProvider<T> = () => Promise<T>;
|
|
18
22
|
/**
|
|
19
23
|
* A convenient type declaration for handlers used to resolve "error" type events.
|
|
20
24
|
*/
|