@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.
Files changed (115) hide show
  1. package/dist/{chunk-LU4ZKFF6.js → chunk-3BAOZ2P2.js} +203 -62
  2. package/dist/chunk-3BAOZ2P2.js.map +6 -0
  3. package/dist/{chunk-YZGL3D7L.js → chunk-5AEWM4W6.js} +41 -95
  4. package/dist/chunk-5AEWM4W6.js.map +6 -0
  5. package/dist/cli/execute.d.ts.map +1 -1
  6. package/dist/cli/index.js +11 -12
  7. package/dist/cli/index.js.map +1 -1
  8. package/dist/compiler/diagnostic.d.ts.map +1 -1
  9. package/dist/compiler/emit/sourcemap.d.ts.map +1 -1
  10. package/dist/compiler/worker.js +1 -1
  11. package/dist/helpers/convert/index.d.ts +5 -0
  12. package/dist/helpers/convert/index.d.ts.map +1 -0
  13. package/dist/helpers/convert/to-boolean.d.ts +4 -0
  14. package/dist/helpers/convert/to-boolean.d.ts.map +1 -0
  15. package/dist/helpers/convert/to-format.d.ts +4 -0
  16. package/dist/helpers/convert/to-format.d.ts.map +1 -0
  17. package/dist/helpers/convert/to-number.d.ts +4 -0
  18. package/dist/helpers/convert/to-number.d.ts.map +1 -0
  19. package/dist/helpers/convert/to-string.d.ts +6 -0
  20. package/dist/helpers/convert/to-string.d.ts.map +1 -0
  21. package/dist/helpers/serialize.d.ts.map +1 -1
  22. package/dist/index.js +2 -2
  23. package/dist/subtle.d.ts +2 -2
  24. package/dist/subtle.d.ts.map +1 -1
  25. package/dist/subtle.js +3 -5
  26. package/dist/vm/checkpoint.d.ts.map +1 -1
  27. package/dist/vm/helpers.d.ts.map +1 -1
  28. package/dist/vm/lib/global/bit.d.ts +7 -7
  29. package/dist/vm/lib/global/bit.d.ts.map +1 -1
  30. package/dist/vm/lib/global/debug.d.ts +17 -1
  31. package/dist/vm/lib/global/debug.d.ts.map +1 -1
  32. package/dist/vm/lib/global/json.d.ts +2 -2
  33. package/dist/vm/lib/global/json.d.ts.map +1 -1
  34. package/dist/vm/lib/global/math-additional.d.ts +1 -1
  35. package/dist/vm/lib/global/math-additional.d.ts.map +1 -1
  36. package/dist/vm/lib/global/math-arr.d.ts +5 -5
  37. package/dist/vm/lib/global/math-arr.d.ts.map +1 -1
  38. package/dist/vm/lib/global/math-unary.d.ts +26 -26
  39. package/dist/vm/lib/global/math-unary.d.ts.map +1 -1
  40. package/dist/vm/lib/global/math.d.ts +3 -3
  41. package/dist/vm/lib/global/math.d.ts.map +1 -1
  42. package/dist/vm/lib/global/sequence/all-any.d.ts +2 -2
  43. package/dist/vm/lib/global/sequence/all-any.d.ts.map +1 -1
  44. package/dist/vm/lib/global/sequence/entries.d.ts +3 -3
  45. package/dist/vm/lib/global/sequence/entries.d.ts.map +1 -1
  46. package/dist/vm/lib/global/sequence/find.d.ts +1 -1
  47. package/dist/vm/lib/global/sequence/find.d.ts.map +1 -1
  48. package/dist/vm/lib/global/sequence/flatten.d.ts +1 -1
  49. package/dist/vm/lib/global/sequence/flatten.d.ts.map +1 -1
  50. package/dist/vm/lib/global/sequence/len.d.ts +1 -1
  51. package/dist/vm/lib/global/sequence/len.d.ts.map +1 -1
  52. package/dist/vm/lib/global/sequence/map-filter.d.ts +3 -3
  53. package/dist/vm/lib/global/sequence/map-filter.d.ts.map +1 -1
  54. package/dist/vm/lib/global/sequence/repeat.d.ts +1 -1
  55. package/dist/vm/lib/global/sequence/repeat.d.ts.map +1 -1
  56. package/dist/vm/lib/global/sequence/reverse.d.ts +1 -1
  57. package/dist/vm/lib/global/sequence/reverse.d.ts.map +1 -1
  58. package/dist/vm/lib/global/sequence/sort.d.ts +2 -2
  59. package/dist/vm/lib/global/sequence/sort.d.ts.map +1 -1
  60. package/dist/vm/lib/global/sequence/with.d.ts +1 -1
  61. package/dist/vm/lib/global/sequence/with.d.ts.map +1 -1
  62. package/dist/vm/lib/global/sequence/zip.d.ts +1 -1
  63. package/dist/vm/lib/global/sequence/zip.d.ts.map +1 -1
  64. package/dist/vm/lib/global/string.d.ts +10 -10
  65. package/dist/vm/lib/global/string.d.ts.map +1 -1
  66. package/dist/vm/lib/global/time.d.ts +3 -3
  67. package/dist/vm/lib/global/time.d.ts.map +1 -1
  68. package/dist/vm/lib/global/to-primitive.d.ts +4 -4
  69. package/dist/vm/lib/global/to-primitive.d.ts.map +1 -1
  70. package/dist/vm/lib/helpers.d.ts +4 -2
  71. package/dist/vm/lib/helpers.d.ts.map +1 -1
  72. package/dist/vm/lib/index.d.ts +1 -1
  73. package/dist/vm/lib/index.d.ts.map +1 -1
  74. package/dist/vm/lib/mod/matrix.d.ts +13 -13
  75. package/dist/vm/lib/mod/matrix.d.ts.map +1 -1
  76. package/dist/vm/operations.d.ts.map +1 -1
  77. package/dist/vm/types/context.d.ts +3 -17
  78. package/dist/vm/types/context.d.ts.map +1 -1
  79. package/dist/vm/types/index.d.ts +1 -1
  80. package/dist/vm/types/index.d.ts.map +1 -1
  81. package/package.json +2 -2
  82. package/src/cli/execute.ts +10 -10
  83. package/src/compiler/diagnostic.ts +29 -11
  84. package/src/compiler/emit/globals.ts +1 -1
  85. package/src/compiler/emit/sourcemap.ts +8 -3
  86. package/src/helpers/convert/index.ts +4 -0
  87. package/src/helpers/convert/to-boolean.ts +12 -0
  88. package/src/helpers/convert/to-format.ts +37 -0
  89. package/src/helpers/convert/to-number.ts +35 -0
  90. package/src/helpers/convert/to-string.ts +55 -0
  91. package/src/helpers/serialize.ts +1 -0
  92. package/src/subtle.ts +2 -2
  93. package/src/vm/checkpoint.ts +19 -10
  94. package/src/vm/helpers.ts +1 -1
  95. package/src/vm/lib/global/debug.ts +84 -7
  96. package/src/vm/lib/global/json.ts +3 -4
  97. package/src/vm/lib/global/sequence/all-any.ts +1 -1
  98. package/src/vm/lib/global/sequence/find.ts +1 -1
  99. package/src/vm/lib/global/sequence/map-filter.ts +1 -1
  100. package/src/vm/lib/global/sequence/sort.ts +1 -1
  101. package/src/vm/lib/global/sequence/with.ts +1 -1
  102. package/src/vm/lib/global/time.ts +1 -1
  103. package/src/vm/lib/global/to-primitive.ts +1 -1
  104. package/src/vm/lib/helpers.ts +5 -4
  105. package/src/vm/lib/index.ts +4 -4
  106. package/src/vm/lib/mod/matrix.ts +1 -1
  107. package/src/vm/operations.ts +11 -12
  108. package/src/vm/types/context.ts +26 -38
  109. package/src/vm/types/extern.ts +1 -1
  110. package/src/vm/types/index.ts +1 -1
  111. package/dist/chunk-LU4ZKFF6.js.map +0 -6
  112. package/dist/chunk-YZGL3D7L.js.map +0 -6
  113. package/dist/helpers/convert.d.ts +0 -12
  114. package/dist/helpers/convert.d.ts.map +0 -1
  115. 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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AED,aAAa;AACb,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEvD;AAED,YAAY;AACZ,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQrD;AAED,YAAY;AACZ,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAUzG;AAkBD,YAAY;AACZ,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,MAAM,CA4B3G;AAoCD;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,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-LU4ZKFF6.js";
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-YZGL3D7L.js";
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 { VmSharedContext, DefaultVmContext } from './vm/types/context.js';
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';
@@ -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,sBAAsB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC1E,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"}
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
- VmSharedContext,
6
+ convert_exports,
7
7
  emitScript,
8
8
  lib,
9
9
  operations_exports
10
- } from "./chunk-LU4ZKFF6.js";
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-YZGL3D7L.js";
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":"AAKA,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,SAAM,GAAG,IAAI,CAKpD"}
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"}
@@ -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,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,KAAK,GAAI,QAAQ,KAAK,EAAE,KAAG,OAQvC,CAAC;AACF,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,KAAG,OAItC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,OAAO,KAAK,KAAG,OAItD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,IAAI,cAAc,EAAE,aAAiC,KAAG,UAGhF,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK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const b_and: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
2
- export declare const b_or: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
3
- export declare const b_not: ((x: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
4
- export declare const b_xor: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
5
- export declare const shl: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
6
- export declare const sar: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
7
- export declare const shr: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
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,gLAWjB,CAAC;AAEF,eAAO,MAAM,IAAI,gLAWhB,CAAC;AAEF,eAAO,MAAM,KAAK,+HAWjB,CAAC;AAEF,eAAO,MAAM,KAAK,gLAWjB,CAAC;AAEF,eAAO,MAAM,GAAG,gLAWf,CAAC;AAEF,eAAO,MAAM,GAAG,gLAWf,CAAC;AAEF,eAAO,MAAM,GAAG,gLAWf,CAAC"}
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;YAaU,SAAS,MAAM,EAAE;CAElD,CAAC;AAEF,eAAO,MAAM,KAAK,aACJ,KAAK;YAiBe,SAAS,MAAM,EAAE;CAElD,CAAC"}
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<string, unknown>;
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<string, unknown>;
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,+IAoBnB,CAAC;AAEF,eAAO,MAAM,SAAS,4fAkBrB,CAAC"}
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<string, unknown>;
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,iEAkDd,CAAC"}
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<string, unknown>;
3
- export declare const min: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
4
- export declare const hypot: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
5
- export declare const sum: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
6
- export declare const product: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
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,iEAalG,CAAC;AAEH,eAAO,MAAM,GAAG,eAfyD,SAAS,KAAK,EAAE,KAAK,MAAM,iEAqBlG,CAAC;AAEH,eAAO,MAAM,KAAK,eAvBuD,SAAS,KAAK,EAAE,KAAK,MAAM,iEA6BlG,CAAC;AAEH,eAAO,MAAM,GAAG,eACA,SAAS,KAAK,EAAE,4EAW/B,CAAC;AAEF,eAAO,MAAM,OAAO,eACJ,SAAS,KAAK,EAAE,4EAW/B,CAAC"}
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<string, unknown>;
3
- export declare const floor: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
4
- export declare const ceil: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
5
- export declare const round: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
6
- export declare const sign: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
7
- export declare const abs: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
8
- export declare const acos: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
9
- export declare const acosh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
10
- export declare const asin: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
11
- export declare const asinh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
12
- export declare const atan: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
13
- export declare const atanh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
14
- export declare const cos: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
15
- export declare const cosh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
16
- export declare const sin: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
17
- export declare const sinh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
18
- export declare const tan: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
19
- export declare const tanh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
20
- export declare const exp: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
21
- export declare const expm1: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
22
- export declare const log: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
23
- export declare const log10: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
24
- export declare const log1p: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
25
- export declare const log2: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
26
- export declare const sqrt: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
27
- export declare const cbrt: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
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,iEAW5D,CAAC;AACH,eAAO,MAAM,KAAK,OAZ4B,KAAK,KAAK,MAAM,iEAiB5D,CAAC;AACH,eAAO,MAAM,IAAI,OAlB6B,KAAK,KAAK,MAAM,iEAuB5D,CAAC;AAIH,eAAO,MAAM,KAAK,OA3B4B,KAAK,KAAK,MAAM,iEA2C7D,CAAC;AACF,eAAO,MAAM,IAAI,OA5C6B,KAAK,KAAK,MAAM,iEAiD5D,CAAC;AACH,eAAO,MAAM,GAAG,OAlD8B,KAAK,KAAK,MAAM,iEAuD5D,CAAC;AAEH,eAAO,MAAM,IAAI,OAzD6B,KAAK,KAAK,MAAM,iEA8D5D,CAAC;AACH,eAAO,MAAM,KAAK,OA/D4B,KAAK,KAAK,MAAM,iEAoE5D,CAAC;AACH,eAAO,MAAM,IAAI,OArE6B,KAAK,KAAK,MAAM,iEA0E5D,CAAC;AACH,eAAO,MAAM,KAAK,OA3E4B,KAAK,KAAK,MAAM,iEAgF5D,CAAC;AACH,eAAO,MAAM,IAAI,OAjF6B,KAAK,KAAK,MAAM,iEAsF5D,CAAC;AACH,eAAO,MAAM,KAAK,OAvF4B,KAAK,KAAK,MAAM,iEA4F5D,CAAC;AACH,eAAO,MAAM,GAAG,OA7F8B,KAAK,KAAK,MAAM,iEAkG5D,CAAC;AACH,eAAO,MAAM,IAAI,OAnG6B,KAAK,KAAK,MAAM,iEAwG5D,CAAC;AACH,eA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AM,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<string, unknown>;
2
- export declare const pow: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
3
- export declare const random: (() => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
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,gLAKhB,CAAC;AACH,eAAO,MAAM,GAAG,gLAKd,CAAC;AACH,eAAO,MAAM,MAAM,gFAKjB,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC"}
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<string, unknown>;
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<string, unknown>;
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,iNAkCf,CAAC;AAEF,eAAO,MAAM,GAAG,iNAkCf,CAAC"}
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<string, unknown>;
3
- export declare const values: ((data: import("../../../types/index.js").VmValue | undefined) => import("../../../types/index.js").VmArray) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
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<string, unknown>;
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,2JAuBhB,CAAC;AAEF,eAAO,MAAM,MAAM,iLAelB,CAAC;AAEF,eAAO,MAAM,OAAO;OAIc,MAAM;OAAK,OAAO;;;;uEAgBnD,CAAC"}
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<string, unknown>;
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;;;;;;4EA4ChB,CAAC"}
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<string, unknown>;
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,wTAYnB,CAAC"}
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<string, unknown>;
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,uIAYf,CAAC"}
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<string, unknown>;
6
- export declare const filter: ((data: VmValue | undefined, predicate: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
7
- export declare const filter_map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
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,qIAef,CAAC;AAEF,eAAO,MAAM,MAAM,6IAmBlB,CAAC;AAEF,eAAO,MAAM,UAAU,qIAmBtB,CAAC"}
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<string, unknown>;
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,+MAsBlB,CAAC"}
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<string, unknown>;
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,oLAcnB,CAAC"}
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<string, unknown>;
3
- export declare const sort_by: ((data: VmValue | undefined, key_fn: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
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,gJAwBhB,CAAC;AAEF,eAAO,MAAM,OAAO,6KAgCnB,CAAC"}
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<string, unknown>;
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,+LA4DV,CAAC;AACF,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,CAAC"}
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<string, unknown>;
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,0KAiCf,CAAC"}
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<string, unknown>;
2
- export declare const starts_with: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined) => boolean) & import("../helpers.js").VmLibOption & Record<string, unknown>;
3
- export declare const ends_with: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined) => boolean) & import("../helpers.js").VmLibOption & Record<string, unknown>;
4
- export declare const contains: ((str: import("../../index.js").VmValue | undefined, search: import("../../index.js").VmValue | undefined) => boolean) & import("../helpers.js").VmLibOption & Record<string, unknown>;
5
- export declare const trim_start: ((str: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<string, unknown>;
6
- export declare const trim_end: ((str: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<string, unknown>;
7
- export declare const trim: ((str: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<string, unknown>;
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<string, unknown>;
9
- export declare const split: ((str: import("../../index.js").VmValue | undefined, separator?: import("../../index.js").VmValue | undefined) => string[]) & import("../helpers.js").VmLibOption & Record<string, unknown>;
10
- export declare const join: ((arr: import("../../index.js").VmValue | undefined, separator?: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<string, unknown>;
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,mIAWjB,CAAC;AAEF,eAAO,MAAM,WAAW,wLAWvB,CAAC;AACF,eAAO,MAAM,SAAS,wLAWrB,CAAC;AAEF,eAAO,MAAM,QAAQ,wLAWpB,CAAC;AAEF,eAAO,MAAM,UAAU,iIAWtB,CAAC;AAEF,eAAO,MAAM,QAAQ,iIAWpB,CAAC;AAEF,eAAO,MAAM,IAAI,iIAWhB,CAAC;AAEF,eAAO,MAAM,OAAO,mPAcnB,CAAC;AAEF,eAAO,MAAM,KAAK,6LAcjB,CAAC;AAEF,eAAO,MAAM,IAAI,2LAahB,CAAC"}
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<string, unknown>;
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<string, unknown>;
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<string, unknown>;
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,sPAgBxB,CAAC;AAEF,eAAO,MAAM,WAAW,kTAsCvB,CAAC;AAEF,eAAO,MAAM,UAAU,sPAgBtB,CAAC"}
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<string, unknown>;
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<string, unknown>;
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<string, unknown>;
4
- export declare const format: ((data: import("../../index.js").VmValue | undefined, format: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<string, unknown>;
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,ucAerB,CAAC;AAEF,eAAO,MAAM,SAAS,ucAerB,CAAC;AAEF,eAAO,MAAM,UAAU,ucAetB,CAAC;AAEF,eAAO,MAAM,MAAM,wLAYlB,CAAC"}
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"}
@@ -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, mapper: (value: VmConst, index: number | string | null, data: VmConst) => VmConst | undefined): 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