@mirascript/mirascript 0.1.16 → 0.1.18
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/{chunk-LU4ZKFF6.js → chunk-3BAOZ2P2.js} +203 -62
- package/dist/chunk-3BAOZ2P2.js.map +6 -0
- package/dist/{chunk-YZGL3D7L.js → chunk-5AEWM4W6.js} +41 -95
- package/dist/chunk-5AEWM4W6.js.map +6 -0
- package/dist/cli/execute.d.ts.map +1 -1
- package/dist/cli/index.js +11 -12
- package/dist/cli/index.js.map +1 -1
- package/dist/compiler/diagnostic.d.ts.map +1 -1
- package/dist/compiler/emit/sourcemap.d.ts.map +1 -1
- package/dist/compiler/worker.js +1 -1
- package/dist/helpers/convert/index.d.ts +5 -0
- package/dist/helpers/convert/index.d.ts.map +1 -0
- package/dist/helpers/convert/to-boolean.d.ts +4 -0
- package/dist/helpers/convert/to-boolean.d.ts.map +1 -0
- package/dist/helpers/convert/to-format.d.ts +4 -0
- package/dist/helpers/convert/to-format.d.ts.map +1 -0
- package/dist/helpers/convert/to-number.d.ts +4 -0
- package/dist/helpers/convert/to-number.d.ts.map +1 -0
- package/dist/helpers/convert/to-string.d.ts +6 -0
- package/dist/helpers/convert/to-string.d.ts.map +1 -0
- package/dist/helpers/serialize.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/subtle.d.ts +2 -2
- package/dist/subtle.d.ts.map +1 -1
- package/dist/subtle.js +3 -5
- package/dist/vm/checkpoint.d.ts.map +1 -1
- package/dist/vm/helpers.d.ts.map +1 -1
- package/dist/vm/lib/global/bit.d.ts +7 -7
- package/dist/vm/lib/global/bit.d.ts.map +1 -1
- package/dist/vm/lib/global/debug.d.ts +17 -1
- package/dist/vm/lib/global/debug.d.ts.map +1 -1
- package/dist/vm/lib/global/json.d.ts +2 -2
- package/dist/vm/lib/global/json.d.ts.map +1 -1
- package/dist/vm/lib/global/math-additional.d.ts +1 -1
- package/dist/vm/lib/global/math-additional.d.ts.map +1 -1
- package/dist/vm/lib/global/math-arr.d.ts +5 -5
- package/dist/vm/lib/global/math-arr.d.ts.map +1 -1
- package/dist/vm/lib/global/math-unary.d.ts +26 -26
- package/dist/vm/lib/global/math-unary.d.ts.map +1 -1
- package/dist/vm/lib/global/math.d.ts +3 -3
- package/dist/vm/lib/global/math.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/all-any.d.ts +2 -2
- package/dist/vm/lib/global/sequence/all-any.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/entries.d.ts +3 -3
- package/dist/vm/lib/global/sequence/entries.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/find.d.ts +1 -1
- package/dist/vm/lib/global/sequence/find.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/flatten.d.ts +1 -1
- package/dist/vm/lib/global/sequence/flatten.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/len.d.ts +1 -1
- package/dist/vm/lib/global/sequence/len.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/map-filter.d.ts +3 -3
- package/dist/vm/lib/global/sequence/map-filter.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/repeat.d.ts +1 -1
- package/dist/vm/lib/global/sequence/repeat.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/reverse.d.ts +1 -1
- package/dist/vm/lib/global/sequence/reverse.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/sort.d.ts +2 -2
- package/dist/vm/lib/global/sequence/sort.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/with.d.ts +1 -1
- package/dist/vm/lib/global/sequence/with.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/zip.d.ts +1 -1
- package/dist/vm/lib/global/sequence/zip.d.ts.map +1 -1
- package/dist/vm/lib/global/string.d.ts +10 -10
- package/dist/vm/lib/global/string.d.ts.map +1 -1
- package/dist/vm/lib/global/time.d.ts +3 -3
- package/dist/vm/lib/global/time.d.ts.map +1 -1
- package/dist/vm/lib/global/to-primitive.d.ts +4 -4
- package/dist/vm/lib/global/to-primitive.d.ts.map +1 -1
- package/dist/vm/lib/helpers.d.ts +4 -2
- package/dist/vm/lib/helpers.d.ts.map +1 -1
- package/dist/vm/lib/index.d.ts +1 -1
- package/dist/vm/lib/index.d.ts.map +1 -1
- package/dist/vm/lib/mod/matrix.d.ts +13 -13
- package/dist/vm/lib/mod/matrix.d.ts.map +1 -1
- package/dist/vm/operations.d.ts.map +1 -1
- package/dist/vm/types/context.d.ts +3 -17
- package/dist/vm/types/context.d.ts.map +1 -1
- package/dist/vm/types/index.d.ts +1 -1
- package/dist/vm/types/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/cli/execute.ts +10 -10
- package/src/compiler/diagnostic.ts +29 -11
- package/src/compiler/emit/globals.ts +1 -1
- package/src/compiler/emit/sourcemap.ts +8 -3
- package/src/helpers/convert/index.ts +4 -0
- package/src/helpers/convert/to-boolean.ts +12 -0
- package/src/helpers/convert/to-format.ts +37 -0
- package/src/helpers/convert/to-number.ts +35 -0
- package/src/helpers/convert/to-string.ts +55 -0
- package/src/helpers/serialize.ts +1 -0
- package/src/subtle.ts +2 -2
- package/src/vm/checkpoint.ts +19 -10
- package/src/vm/helpers.ts +1 -1
- package/src/vm/lib/global/debug.ts +84 -7
- package/src/vm/lib/global/json.ts +3 -4
- package/src/vm/lib/global/sequence/all-any.ts +1 -1
- package/src/vm/lib/global/sequence/find.ts +1 -1
- package/src/vm/lib/global/sequence/map-filter.ts +1 -1
- package/src/vm/lib/global/sequence/sort.ts +1 -1
- package/src/vm/lib/global/sequence/with.ts +1 -1
- package/src/vm/lib/global/time.ts +1 -1
- package/src/vm/lib/global/to-primitive.ts +1 -1
- package/src/vm/lib/helpers.ts +5 -4
- package/src/vm/lib/index.ts +4 -4
- package/src/vm/lib/mod/matrix.ts +1 -1
- package/src/vm/operations.ts +11 -12
- package/src/vm/types/context.ts +26 -38
- package/src/vm/types/extern.ts +1 -1
- package/src/vm/types/index.ts +1 -1
- package/dist/chunk-LU4ZKFF6.js.map +0 -6
- package/dist/chunk-YZGL3D7L.js.map +0 -6
- package/dist/helpers/convert.d.ts +0 -12
- package/dist/helpers/convert.d.ts.map +0 -1
- package/src/helpers/convert.ts +0 -128
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { VmAny } from '../../vm/index.js';
|
|
2
|
+
/** 转换为 string */
|
|
3
|
+
export declare function innerToString(value: VmAny, useBraces: boolean): string;
|
|
4
|
+
/** 转换为 string */
|
|
5
|
+
export declare function toString<F = undefined>(value: VmAny, fallback?: F): string | Exclude<F, undefined>;
|
|
6
|
+
//# sourceMappingURL=to-string.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-string.d.ts","sourceRoot":"","sources":["../../../src/helpers/convert/to-string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAY,MAAM,mBAAmB,CAAC;AAczD,iBAAiB;AACjB,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,GAAG,MAAM,CAuBtE;AAED,iBAAiB;AACjB,wBAAgB,QAAQ,CAAC,CAAC,GAAG,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAalG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../src/helpers/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAY/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAKxD,YAAY;AACZ,MAAM,WAAW,gBAAgB;IAC7B,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAg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K,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAEnF;AAED,+CAA+C;AAC/C,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAQzD;AACD,6CAA6C;AAC7C,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMrG;AAiBD;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAGjF"}
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
emitScript,
|
|
12
12
|
unwrapFromVmValue,
|
|
13
13
|
wrapToVmValue
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3BAOZ2P2.js";
|
|
15
15
|
import {
|
|
16
16
|
VmError,
|
|
17
17
|
generateBytecode,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
isVmValue,
|
|
36
36
|
isVmWrapper,
|
|
37
37
|
serialize
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5AEWM4W6.js";
|
|
39
39
|
export {
|
|
40
40
|
VmError,
|
|
41
41
|
VmExtern,
|
package/dist/subtle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as constants from './helpers/constants.js';
|
|
2
|
-
export * as convert from './helpers/convert.js';
|
|
3
|
-
export {
|
|
2
|
+
export * as convert from './helpers/convert/index.js';
|
|
3
|
+
export { DefaultVmContext } from './vm/types/context.js';
|
|
4
4
|
export * as operations from './vm/operations.js';
|
|
5
5
|
export { display as serializeForDisplay, serialize, serializeNil, serializeBoolean, serializeNumber, serializeString, serializeRecordKey, serializeArray, serializeRecord, type SerializeOptions, } from './helpers/serialize.js';
|
|
6
6
|
export { lib } from './vm/lib/index.js';
|
package/dist/subtle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subtle.d.ts","sourceRoot":"","sources":["../src/subtle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"subtle.d.ts","sourceRoot":"","sources":["../src/subtle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACH,OAAO,IAAI,mBAAmB,EAC9B,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,KAAK,gBAAgB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEzF,wBAAwB;AACxB,eAAO,IAAI,QAAQ,EAAE,MAAM,SAAS,MAAM,EAIzC,CAAC"}
|
package/dist/subtle.js
CHANGED
|
@@ -3,15 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-RLWIIOH5.js";
|
|
4
4
|
import {
|
|
5
5
|
DefaultVmContext,
|
|
6
|
-
|
|
6
|
+
convert_exports,
|
|
7
7
|
emitScript,
|
|
8
8
|
lib,
|
|
9
9
|
operations_exports
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3BAOZ2P2.js";
|
|
11
11
|
import {
|
|
12
12
|
DiagnosticCode,
|
|
13
13
|
constants_exports,
|
|
14
|
-
convert_exports,
|
|
15
14
|
display,
|
|
16
15
|
formatDiagnostics,
|
|
17
16
|
generateBytecode,
|
|
@@ -26,11 +25,10 @@ import {
|
|
|
26
25
|
serializeRecord,
|
|
27
26
|
serializeRecordKey,
|
|
28
27
|
serializeString
|
|
29
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5AEWM4W6.js";
|
|
30
29
|
export {
|
|
31
30
|
DefaultVmContext,
|
|
32
31
|
DiagnosticCode,
|
|
33
|
-
VmSharedContext,
|
|
34
32
|
constants_exports as constants,
|
|
35
33
|
convert_exports as convert,
|
|
36
34
|
emitScript,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkpoint.d.ts","sourceRoot":"","sources":["../../src/vm/checkpoint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkpoint.d.ts","sourceRoot":"","sources":["../../src/vm/checkpoint.ts"],"names":[],"mappings":"AAcA,UAAU;AACV,wBAAgB,EAAE,IAAI,IAAI,CAMzB;AACD,UAAU;AACV,wBAAgB,OAAO,IAAI,IAAI,CAU9B;AACD,UAAU;AACV,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AACD,gBAAgB;AAChB,wBAAgB,gBAAgB,CAAC,OAAO,SAAqB,GAAG,IAAI,CAKnE"}
|
package/dist/vm/helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/vm/helpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,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,OAU9D,CAAC;AAEF,cAAc;AACd,wBAAgB,cAAc,IAAI,SAAS,CAE1C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const b_and: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<
|
|
2
|
-
export declare const b_or: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<
|
|
3
|
-
export declare const b_not: ((x: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<
|
|
4
|
-
export declare const b_xor: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<
|
|
5
|
-
export declare const shl: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<
|
|
6
|
-
export declare const sar: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<
|
|
7
|
-
export declare const shr: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const b_and: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const b_or: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const b_not: ((x: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
+
export declare const b_xor: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
+
export declare const shl: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
+
export declare const sar: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
+
export declare const shr: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
8
8
|
//# sourceMappingURL=bit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bit.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/bit.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"bit.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/bit.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,6KAWjB,CAAC;AAEF,eAAO,MAAM,IAAI,6KAWhB,CAAC;AAEF,eAAO,MAAM,KAAK,4HAWjB,CAAC;AAEF,eAAO,MAAM,KAAK,6KAWjB,CAAC;AAEF,eAAO,MAAM,GAAG,6KAWf,CAAC;AAEF,eAAO,MAAM,GAAG,6KAWf,CAAC;AAEF,eAAO,MAAM,GAAG,6KAWf,CAAC"}
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import type { VmAny } from '../../types/index.js';
|
|
2
|
+
/** 序列化格式 */
|
|
3
|
+
type SerializeFormat =
|
|
4
|
+
/** 表示未指定格式 */
|
|
5
|
+
''
|
|
6
|
+
/** 以 `%` 开头的格式占位符 */
|
|
7
|
+
| `%${string}`;
|
|
8
|
+
/**
|
|
9
|
+
* 默认的序列化函数
|
|
10
|
+
* @param arg 要序列化的值
|
|
11
|
+
* @param format 序列化格式
|
|
12
|
+
* @returns 序列化后的字符串,或 null 表示直接将原值传递给控制台
|
|
13
|
+
*/
|
|
14
|
+
declare function defaultSerializer(arg: VmAny, format: SerializeFormat): string | null;
|
|
2
15
|
export declare const debug_print: ((...args: readonly (import("../../types/index.js").VmValue | undefined)[]) => void) & import("../helpers.js").VmLibOption & {
|
|
3
|
-
prefix: readonly string[];
|
|
16
|
+
prefix: readonly [prefix: string, ...additional: readonly string[]];
|
|
17
|
+
serializer: typeof defaultSerializer;
|
|
4
18
|
};
|
|
5
19
|
export declare const panic: ((message: VmAny) => never) & import("../helpers.js").VmLibOption & {
|
|
6
20
|
prefix: readonly string[];
|
|
21
|
+
serializer: typeof defaultSerializer;
|
|
7
22
|
};
|
|
23
|
+
export {};
|
|
8
24
|
//# sourceMappingURL=debug.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/debug.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,eAAO,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/debug.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,YAAY;AACZ,KAAK,eAAe;AAChB,cAAc;AACZ,EAAE;AACJ,qBAAqB;GACnB,IAAI,MAAM,EAAE,CAAC;AACnB;;;;;GAKG;AACH,iBAAS,iBAAiB,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAE7E;AAcD,eAAO,MAAM,WAAW;YA2DU,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;;CAG5F,CAAC;AAEF,eAAO,MAAM,KAAK,aACJ,KAAK;YAiBe,SAAS,MAAM,EAAE;;CAGlD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const to_json: ((data: import("../../types/index.js").VmValue | undefined) => string | null) & import("../helpers.js").VmLibOption & Record<
|
|
2
|
-
export declare const from_json: ((json: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => string | number | boolean | import("../../types/index.js").VmRecord | import("../../types/index.js").VmArray | import("../../types/function.js").VmFunction | import("../../types/module.js").VmModule<Record<string, import("../../types/index.js").VmImmutable>> | import("../../types/extern.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const to_json: ((data: import("../../types/index.js").VmValue | undefined) => string | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const from_json: ((json: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => string | number | boolean | import("../../types/index.js").VmRecord | import("../../types/index.js").VmArray | import("../../types/function.js").VmFunction | import("../../types/module.js").VmModule<Record<string, import("../../types/index.js").VmImmutable>> | import("../../types/extern.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
3
|
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/json.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/json.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,4IAoBnB,CAAC;AAEF,eAAO,MAAM,SAAS,yfAiBrB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const factorial: ((x: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const factorial: ((x: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
2
|
//# sourceMappingURL=math-additional.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math-additional.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-additional.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,SAAS,wDACb,MAAM,
|
|
1
|
+
{"version":3,"file":"math-additional.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-additional.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,SAAS,wDACb,MAAM,8DAkDd,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { VmAny } from '../../types/index.js';
|
|
2
|
-
export declare const max: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<
|
|
3
|
-
export declare const min: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<
|
|
4
|
-
export declare const hypot: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<
|
|
5
|
-
export declare const sum: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<
|
|
6
|
-
export declare const product: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<
|
|
2
|
+
export declare const max: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const min: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
+
export declare const hypot: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
+
export declare const sum: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
+
export declare const product: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
7
7
|
//# sourceMappingURL=math-arr.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math-arr.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-arr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAWlD,eAAO,MAAM,GAAG,eAPyD,SAAS,KAAK,EAAE,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"math-arr.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-arr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAWlD,eAAO,MAAM,GAAG,eAPyD,SAAS,KAAK,EAAE,KAAK,MAAM,8DAalG,CAAC;AAEH,eAAO,MAAM,GAAG,eAfyD,SAAS,KAAK,EAAE,KAAK,MAAM,8DAqBlG,CAAC;AAEH,eAAO,MAAM,KAAK,eAvBuD,SAAS,KAAK,EAAE,KAAK,MAAM,8DA6BlG,CAAC;AAEH,eAAO,MAAM,GAAG,eACA,SAAS,KAAK,EAAE,yEAW/B,CAAC;AAEF,eAAO,MAAM,OAAO,eACJ,SAAS,KAAK,EAAE,yEAW/B,CAAC"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import type { VmAny } from '../../index.js';
|
|
2
|
-
export declare const trunc: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
3
|
-
export declare const floor: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
4
|
-
export declare const ceil: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
5
|
-
export declare const round: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
6
|
-
export declare const sign: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
7
|
-
export declare const abs: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
8
|
-
export declare const acos: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
9
|
-
export declare const acosh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
10
|
-
export declare const asin: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
11
|
-
export declare const asinh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
12
|
-
export declare const atan: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
13
|
-
export declare const atanh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
14
|
-
export declare const cos: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
15
|
-
export declare const cosh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
16
|
-
export declare const sin: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
17
|
-
export declare const sinh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
18
|
-
export declare const tan: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
19
|
-
export declare const tanh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
20
|
-
export declare const exp: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
21
|
-
export declare const expm1: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
22
|
-
export declare const log: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
23
|
-
export declare const log10: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
24
|
-
export declare const log1p: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
25
|
-
export declare const log2: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
26
|
-
export declare const sqrt: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
27
|
-
export declare const cbrt: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<
|
|
2
|
+
export declare const trunc: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const floor: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
+
export declare const ceil: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
+
export declare const round: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
+
export declare const sign: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
+
export declare const abs: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
8
|
+
export declare const acos: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
9
|
+
export declare const acosh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
10
|
+
export declare const asin: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
11
|
+
export declare const asinh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
12
|
+
export declare const atan: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
13
|
+
export declare const atanh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
14
|
+
export declare const cos: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
15
|
+
export declare const cosh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
16
|
+
export declare const sin: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
17
|
+
export declare const sinh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
18
|
+
export declare const tan: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
19
|
+
export declare const tanh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
20
|
+
export declare const exp: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
21
|
+
export declare const expm1: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
22
|
+
export declare const log: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
23
|
+
export declare const log10: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
24
|
+
export declare const log1p: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
25
|
+
export declare const log2: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
26
|
+
export declare const sqrt: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
27
|
+
export declare const cbrt: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
28
28
|
//# sourceMappingURL=math-unary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math-unary.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-unary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAU5C,eAAO,MAAM,KAAK,OAN4B,KAAK,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"math-unary.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-unary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAU5C,eAAO,MAAM,KAAK,OAN4B,KAAK,KAAK,MAAM,8DAW5D,CAAC;AACH,eAAO,MAAM,KAAK,OAZ4B,KAAK,KAAK,MAAM,8DAiB5D,CAAC;AACH,eAAO,MAAM,IAAI,OAlB6B,KAAK,KAAK,MAAM,8DAuB5D,CAAC;AAIH,eAAO,MAAM,KAAK,OA3B4B,KAAK,KAAK,MAAM,8DA2C7D,CAAC;AACF,eAAO,MAAM,IAAI,OA5C6B,KAAK,KAAK,MAAM,8DAiD5D,CAAC;AACH,eAAO,MAAM,GAAG,OAlD8B,KAAK,KAAK,MAAM,8DAuD5D,CAAC;AAEH,eAAO,MAAM,IAAI,OAzD6B,KAAK,KAAK,MAAM,8DA8D5D,CAAC;AACH,eAAO,MAAM,KAAK,OA/D4B,KAAK,KAAK,MAAM,8DAoE5D,CAAC;AACH,eAAO,MAAM,IAAI,OArE6B,KAAK,KAAK,MAAM,8DA0E5D,CAAC;AACH,eAAO,MAAM,KAAK,OA3E4B,KAAK,KAAK,MAAM,8DAgF5D,CAAC;AACH,eAAO,MAAM,IAAI,OAjF6B,KAAK,KAAK,MAAM,8DAsF5D,CAAC;AACH,eAAO,MAAM,KAAK,OAvF4B,KAAK,KAAK,MAAM,8DA4F5D,CAAC;AACH,eAAO,MAAM,GAAG,OA7F8B,KAAK,KAAK,MAAM,8DAkG5D,CAAC;AACH,eAAO,MAAM,IAAI,OAnG6B,KAAK,KAAK,MAAM,8DAwG5D,CAAC;AACH,eAAO,MAAM,GAAG,OAzG8B,KAAK,KAAK,MAAM,8DA8G5D,CAAC;AACH,eAAO,MAAM,IAAI,OA/G6B,KAAK,KAAK,MAAM,8DAoH5D,CAAC;AACH,eAAO,MAAM,GAAG,OArH8B,KAAK,KAAK,MAAM,8DA0H5D,CAAC;AACH,eAAO,MAAM,IAAI,OA3H6B,KAAK,KAAK,MAAM,8DAgI5D,CAAC;AAEH,eAAO,MAAM,GAAG,OAlI8B,KAAK,KAAK,MAAM,8DAuI5D,CAAC;AACH,eAAO,MAAM,KAAK,OAxI4B,KAAK,KAAK,MAAM,8DA6I5D,CAAC;AACH,eAAO,MAAM,GAAG,OA9I8B,KAAK,KAAK,MAAM,8DAmJ5D,CAAC;AACH,eAAO,MAAM,KAAK,OApJ4B,KAAK,KAAK,MAAM,8DAyJ5D,CAAC;AACH,eAAO,MAAM,KAAK,OA1J4B,KAAK,KAAK,MAAM,8DA+J5D,CAAC;AACH,eAAO,MAAM,IAAI,OAhK6B,KAAK,KAAK,MAAM,8DAqK5D,CAAC;AAEH,eAAO,MAAM,IAAI,OAvK6B,KAAK,KAAK,MAAM,8DA4K5D,CAAC;AACH,eAAO,MAAM,IAAI,OA7K6B,KAAK,KAAK,MAAM,8DAkL5D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const atan2: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<
|
|
2
|
-
export declare const pow: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<
|
|
3
|
-
export declare const random: (() => number) & import("../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const atan2: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const pow: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const random: (() => number) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
4
|
export * from './math-arr.js';
|
|
5
5
|
export * from './math-const.js';
|
|
6
6
|
export * from './math-unary.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,6KAKhB,CAAC;AACH,eAAO,MAAM,GAAG,6KAKd,CAAC;AACH,eAAO,MAAM,MAAM,6EAKjB,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const all: ((data: import("../../../types/index.js").VmValue | undefined, predicate: import("../../../types/index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<
|
|
2
|
-
export declare const any: ((data: import("../../../types/index.js").VmValue | undefined, predicate: import("../../../types/index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const all: ((data: import("../../../types/index.js").VmValue | undefined, predicate: import("../../../types/index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const any: ((data: import("../../../types/index.js").VmValue | undefined, predicate: import("../../../types/index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
3
|
//# sourceMappingURL=all-any.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-any.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/all-any.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"all-any.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/all-any.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG,8MAkCf,CAAC;AAEF,eAAO,MAAM,GAAG,8MAkCf,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const keys: ((data: import("../../../types/index.js").VmValue | undefined) => string[] | number[]) & import("../../helpers.js").VmLibOption & Record<
|
|
3
|
-
export declare const values: ((data: import("../../../types/index.js").VmValue | undefined) => import("../../../types/index.js").VmArray) & import("../../helpers.js").VmLibOption & Record<
|
|
2
|
+
export declare const keys: ((data: import("../../../types/index.js").VmValue | undefined) => string[] | number[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const values: ((data: import("../../../types/index.js").VmValue | undefined) => import("../../../types/index.js").VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
4
|
export declare const entries: ((data: import("../../../types/index.js").VmValue | undefined) => {
|
|
5
5
|
0: number;
|
|
6
6
|
1: VmConst;
|
|
7
7
|
}[] | {
|
|
8
8
|
0: string;
|
|
9
9
|
1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
|
|
10
|
-
}[]) & import("../../helpers.js").VmLibOption & Record<
|
|
10
|
+
}[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
11
11
|
//# sourceMappingURL=entries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/entries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAI9E,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/entries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAI9E,eAAO,MAAM,IAAI,wJAuBhB,CAAC;AAEF,eAAO,MAAM,MAAM,8KAelB,CAAC;AAEF,eAAO,MAAM,OAAO;OAIc,MAAM;OAAK,OAAO;;;;oEAgBnD,CAAC"}
|
|
@@ -5,5 +5,5 @@ export declare const find: ((data: VmValue | undefined, predicate: VmValue | und
|
|
|
5
5
|
} | {
|
|
6
6
|
0: string;
|
|
7
7
|
1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
|
|
8
|
-
} | null) & import("../../helpers.js").VmLibOption & Record<
|
|
8
|
+
} | null) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
9
9
|
//# sourceMappingURL=find.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/find.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAA2B,MAAM,yBAAyB,CAAC;AAGhF,eAAO,MAAM,IAAI;;;;;;
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/find.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAA2B,MAAM,yBAAyB,CAAC;AAGhF,eAAO,MAAM,IAAI;;;;;;yEA4ChB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const flatten: ((data: import("../../../index.js").VmValue | undefined, depth?: import("../../../index.js").VmValue | undefined) => (string | number | boolean | import("../../../index.js").VmRecord | import("../../../index.js").VmArray | null | undefined)[]) & import("../../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const flatten: ((data: import("../../../index.js").VmValue | undefined, depth?: import("../../../index.js").VmValue | undefined) => (string | number | boolean | import("../../../index.js").VmRecord | import("../../../index.js").VmArray | null | undefined)[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
2
|
//# sourceMappingURL=flatten.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/flatten.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/flatten.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,qTAYnB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const len: ((arr: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const len: ((arr: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
2
|
//# sourceMappingURL=len.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"len.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/len.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"len.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/len.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,oIAYf,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { type VmValue } from '../../../types/index.js';
|
|
|
2
2
|
export * from './with.js';
|
|
3
3
|
export * from './entries.js';
|
|
4
4
|
export * from './len.js';
|
|
5
|
-
export declare const map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<
|
|
6
|
-
export declare const filter: ((data: VmValue | undefined, predicate: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<
|
|
7
|
-
export declare const filter_map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<
|
|
5
|
+
export declare const map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
+
export declare const filter: ((data: VmValue | undefined, predicate: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
+
export declare const filter_map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
8
8
|
//# sourceMappingURL=map-filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-filter.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/map-filter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAG9E,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AAkBzB,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"map-filter.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/map-filter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAG9E,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AAkBzB,eAAO,MAAM,GAAG,kIAef,CAAC;AAEF,eAAO,MAAM,MAAM,0IAmBlB,CAAC;AAEF,eAAO,MAAM,UAAU,kIAmBtB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const repeat: ((data: import("../../../types/index.js").VmValue | undefined, times: import("../../../types/index.js").VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<
|
|
2
|
+
export declare const repeat: ((data: import("../../../types/index.js").VmValue | undefined, times: import("../../../types/index.js").VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
3
|
//# sourceMappingURL=repeat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/repeat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/repeat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,MAAM,4MAsBlB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const reverse: ((arr: import("../../../index.js").VmValue | undefined) => (import("../../../index.js").VmConst | undefined)[]) & import("../../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const reverse: ((arr: import("../../../index.js").VmValue | undefined) => (import("../../../index.js").VmConst | undefined)[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
2
|
//# sourceMappingURL=reverse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/reverse.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/reverse.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,iLAcnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { VmConst, VmValue } from '../../../types/index.js';
|
|
2
|
-
export declare const sort: ((data: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<
|
|
3
|
-
export declare const sort_by: ((data: VmValue | undefined, key_fn: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<
|
|
2
|
+
export declare const sort: ((data: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const sort_by: ((data: VmValue | undefined, key_fn: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
4
|
//# sourceMappingURL=sort.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/sort.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAS,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AA+BvE,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/sort.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAS,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AA+BvE,eAAO,MAAM,IAAI,6IAwBhB,CAAC;AAEF,eAAO,MAAM,OAAO,0KAgCnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { VmArray, VmValue } from '../../../types/index.js';
|
|
2
|
-
declare const _with: ((data: VmValue | undefined, ...entries: (VmValue | undefined)[]) => import("../../../types/index.js").VmRecord | VmArray) & import("../../helpers.js").VmLibOption & Record<
|
|
2
|
+
declare const _with: ((data: VmValue | undefined, ...entries: (VmValue | undefined)[]) => import("../../../types/index.js").VmRecord | VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
3
|
export { _with as 'with' };
|
|
4
4
|
//# sourceMappingURL=with.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/with.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAW,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAuEzE,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/with.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAW,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAuEzE,QAAA,MAAM,KAAK,4LA4DV,CAAC;AACF,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const zip: ((data: import("../../../types/index.js").VmValue | undefined) => Record<string | number, VmConst>[]) & import("../../helpers.js").VmLibOption & Record<
|
|
2
|
+
export declare const zip: ((data: import("../../../types/index.js").VmValue | undefined) => Record<string | number, VmConst>[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
3
|
//# sourceMappingURL=zip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/zip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAIhF,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/zip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAIhF,eAAO,MAAM,GAAG,uKAiCf,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const chars: ((str: import("../../index.js").VmValue | undefined) => string[]) & import("../helpers.js").VmLibOption & Record<
|
|
2
|
-
export declare const starts_with: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined) => boolean) & import("../helpers.js").VmLibOption & Record<
|
|
3
|
-
export declare const ends_with: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined) => boolean) & import("../helpers.js").VmLibOption & Record<
|
|
4
|
-
export declare const contains: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined) => boolean) & import("../helpers.js").VmLibOption & Record<
|
|
5
|
-
export declare const trim_start: ((str: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<
|
|
6
|
-
export declare const trim_end: ((str: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<
|
|
7
|
-
export declare const trim: ((str: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<
|
|
8
|
-
export declare const replace: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined, replacement?: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<
|
|
9
|
-
export declare const split: ((str: import("../../index.js").VmValue | undefined, separator?: import("../../index.js").VmValue | undefined) => string[]) & import("../helpers.js").VmLibOption & Record<
|
|
10
|
-
export declare const join: ((arr: import("../../index.js").VmValue | undefined, separator?: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const chars: ((str: import("../../index.js").VmValue | undefined) => string[]) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const starts_with: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined) => boolean) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const ends_with: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined) => boolean) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
+
export declare const contains: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined) => boolean) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
+
export declare const trim_start: ((str: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
+
export declare const trim_end: ((str: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
+
export declare const trim: ((str: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
8
|
+
export declare const replace: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined, replacement?: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
9
|
+
export declare const split: ((str: import("../../index.js").VmValue | undefined, separator?: import("../../index.js").VmValue | undefined) => string[]) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
10
|
+
export declare const join: ((arr: import("../../index.js").VmValue | undefined, separator?: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
11
11
|
//# sourceMappingURL=string.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/string.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/string.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,gIAWjB,CAAC;AAEF,eAAO,MAAM,WAAW,qLAWvB,CAAC;AACF,eAAO,MAAM,SAAS,qLAWrB,CAAC;AAEF,eAAO,MAAM,QAAQ,qLAWpB,CAAC;AAEF,eAAO,MAAM,UAAU,8HAWtB,CAAC;AAEF,eAAO,MAAM,QAAQ,8HAWpB,CAAC;AAEF,eAAO,MAAM,IAAI,8HAWhB,CAAC;AAEF,eAAO,MAAM,OAAO,gPAcnB,CAAC;AAEF,eAAO,MAAM,KAAK,0LAcjB,CAAC;AAEF,eAAO,MAAM,IAAI,wLAahB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const to_timestamp: ((datetime: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<
|
|
2
|
-
export declare const to_datetime: ((datetime: import("../../types/index.js").VmValue | undefined, offset: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<
|
|
3
|
-
export declare const to_iso8601: ((datetime: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const to_timestamp: ((datetime: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const to_datetime: ((datetime: import("../../types/index.js").VmValue | undefined, offset: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const to_iso8601: ((datetime: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
4
|
//# sourceMappingURL=time.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/time.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/time.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,YAAY,mPAgBxB,CAAC;AAEF,eAAO,MAAM,WAAW,+SAsCvB,CAAC;AAEF,eAAO,MAAM,UAAU,mPAgBtB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const to_string: ((data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<
|
|
2
|
-
export declare const to_number: ((data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<
|
|
3
|
-
export declare const to_boolean: ((data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<
|
|
4
|
-
export declare const format: ((data: import("../../index.js").VmValue | undefined, format: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<
|
|
1
|
+
export declare const to_string: ((data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const to_number: ((data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const to_boolean: ((data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
+
export declare const format: ((data: import("../../index.js").VmValue | undefined, format: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
5
5
|
//# sourceMappingURL=to-primitive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-primitive.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/to-primitive.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"to-primitive.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/to-primitive.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,ocAerB,CAAC;AAEF,eAAO,MAAM,SAAS,ocAerB,CAAC;AAEF,eAAO,MAAM,UAAU,ocAetB,CAAC;AAEF,eAAO,MAAM,MAAM,qLAYlB,CAAC"}
|
package/dist/vm/lib/helpers.d.ts
CHANGED
|
@@ -42,12 +42,14 @@ export declare function getNumbers(args: readonly VmAny[]): number[];
|
|
|
42
42
|
/** 将值转为数组长度 */
|
|
43
43
|
export declare function arrayLen(len: number | null | undefined): number;
|
|
44
44
|
/** 应用映射函数 */
|
|
45
|
-
export declare function map(data: VmConst,
|
|
45
|
+
export declare function map(data: VmConst,
|
|
46
|
+
/** 返回 `undefined` 表示跳过该元素 */
|
|
47
|
+
mapper: (value: VmConst, index: number | string | null, data: VmConst) => VmConst | undefined): VmConst;
|
|
46
48
|
/** 库函数选项 */
|
|
47
49
|
export type VmLibOption = Pick<VmFunctionOption, 'summary' | 'params' | 'paramsType' | 'returns' | 'returnsType' | 'examples'>;
|
|
48
50
|
/** 库函数 */
|
|
49
51
|
export type VmLib<T extends VmFunctionLike = VmFunctionLike> = T & VmLibOption;
|
|
50
52
|
/** 创建库函数 */
|
|
51
|
-
export declare function VmLib<T extends VmFunctionLike, P extends Record<string, unknown>>(fn: T, option: VmLibOption, properties?: P): VmLib<T> & P;
|
|
53
|
+
export declare function VmLib<const T extends VmFunctionLike, P extends Record<string, unknown> = Record<never, never>>(fn: T, option: VmLibOption, properties?: P): VmLib<T> & P;
|
|
52
54
|
export {};
|
|
53
55
|
//# sourceMappingURL=helpers.d.ts.map
|