@augment-vir/core 31.54.4 → 31.56.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.
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type MaybePromise } from '../promise/maybe-promise.js';
|
|
1
2
|
/**
|
|
2
|
-
* A
|
|
3
|
+
* A function with no inputs and a return type of `Return` (which defaults to `any`).
|
|
3
4
|
*
|
|
4
5
|
* @category Function
|
|
5
6
|
* @category Package : @augment-vir/common
|
|
@@ -7,10 +8,34 @@
|
|
|
7
8
|
*/
|
|
8
9
|
export type NoInputsFunction<Return = any> = () => Return;
|
|
9
10
|
/**
|
|
10
|
-
* A
|
|
11
|
+
* A function with any inputs and a return type of `Return` (which defaults to `any`).
|
|
11
12
|
*
|
|
12
13
|
* @category Function
|
|
13
14
|
* @category Package : @augment-vir/common
|
|
14
15
|
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
15
16
|
*/
|
|
16
17
|
export type AnyFunction<Return = any> = (...args: any[]) => Return;
|
|
18
|
+
/**
|
|
19
|
+
* A function with no inputs and no outputs.
|
|
20
|
+
*
|
|
21
|
+
* @category Function
|
|
22
|
+
* @category Package : @augment-vir/common
|
|
23
|
+
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
24
|
+
*/
|
|
25
|
+
export type EmptyFunction = () => void;
|
|
26
|
+
/**
|
|
27
|
+
* An async function with no inputs and no outputs.
|
|
28
|
+
*
|
|
29
|
+
* @category Function
|
|
30
|
+
* @category Package : @augment-vir/common
|
|
31
|
+
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
32
|
+
*/
|
|
33
|
+
export type EmptyAsyncFunction = () => Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* A maybe async function with no inputs and no outputs.
|
|
36
|
+
*
|
|
37
|
+
* @category Function
|
|
38
|
+
* @category Package : @augment-vir/common
|
|
39
|
+
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
40
|
+
*/
|
|
41
|
+
export type EmptyMaybeAsyncFunction = () => MaybePromise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/core",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.56.0",
|
|
4
4
|
"description": "Core augment-vir augments. Use @augment-vir/common instead.",
|
|
5
5
|
"homepage": "https://github.com/electrovir/augment-vir",
|
|
6
6
|
"bugs": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"type-fest": "^5.3.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^25.0.
|
|
38
|
+
"@types/node": "^25.0.3",
|
|
39
39
|
"c8": "^10.1.3",
|
|
40
40
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
41
41
|
"typescript": "^5.9.3"
|