functionalscript 0.1.603 → 0.1.605

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 (63) hide show
  1. package/com/cpp/module.f.mjs +1 -0
  2. package/com/cs/module.f.mjs +1 -0
  3. package/com/rust/module.f.mjs +1 -0
  4. package/com/types/module.f.mjs +1 -0
  5. package/commonjs/build/module.f.mjs +2 -1
  6. package/commonjs/module/function/module.f.d.mts +3 -3
  7. package/commonjs/module/function/module.f.mjs +5 -3
  8. package/commonjs/module/module.f.mjs +1 -0
  9. package/commonjs/module.f.mjs +2 -0
  10. package/commonjs/package/dependencies/module.f.mjs +1 -0
  11. package/commonjs/package/module.f.mjs +1 -0
  12. package/commonjs/path/module.f.mjs +1 -0
  13. package/dev/module.f.mjs +2 -0
  14. package/dev/module.mjs +5 -1
  15. package/dev/test/module.f.mjs +1 -0
  16. package/djs/module.f.mjs +2 -0
  17. package/djs/parser/module.f.mjs +2 -0
  18. package/djs/tokenizer/module.f.mjs +2 -0
  19. package/fsc/module.f.mjs +1 -0
  20. package/fsm/module.f.mjs +1 -0
  21. package/html/module.f.mjs +1 -0
  22. package/js/tokenizer/module.f.mjs +1 -0
  23. package/json/module.f.mjs +1 -0
  24. package/json/parser/module.f.mjs +1 -0
  25. package/json/serializer/module.f.mjs +1 -0
  26. package/json/tokenizer/module.f.mjs +1 -0
  27. package/jsr.json +59 -114
  28. package/nodejs/version/module.f.mjs +2 -0
  29. package/package.json +1 -1
  30. package/prime_field/module.f.mjs +1 -0
  31. package/secp/module.f.mjs +1 -0
  32. package/sha2/module.f.mjs +1 -0
  33. package/text/ascii/module.f.mjs +1 -0
  34. package/text/module.f.mjs +1 -0
  35. package/text/sgr/module.f.mjs +2 -0
  36. package/text/utf16/module.f.mjs +1 -0
  37. package/text/utf8/module.f.mjs +1 -0
  38. package/types/array/module.f.mjs +1 -0
  39. package/types/bigfloat/module.f.mjs +1 -0
  40. package/types/bigint/module.f.mjs +1 -0
  41. package/types/btree/find/module.f.mjs +1 -0
  42. package/types/btree/module.f.mjs +2 -0
  43. package/types/btree/remove/module.f.mjs +1 -0
  44. package/types/btree/set/module.f.mjs +1 -0
  45. package/types/btree/types/module.f.mjs +2 -0
  46. package/types/byte_set/module.f.mjs +1 -0
  47. package/types/function/compare/module.f.mjs +1 -0
  48. package/types/function/module.f.mjs +1 -0
  49. package/types/function/operator/module.f.mjs +1 -0
  50. package/types/list/module.f.mjs +1 -1
  51. package/types/map/module.f.mjs +1 -0
  52. package/types/nibble_set/module.f.mjs +1 -0
  53. package/types/nullable/module.f.mjs +1 -0
  54. package/types/number/module.f.mjs +1 -0
  55. package/types/object/module.f.d.mts +3 -3
  56. package/types/object/module.f.mjs +4 -3
  57. package/types/range/module.f.mjs +1 -0
  58. package/types/range_map/module.f.mjs +1 -0
  59. package/types/result/module.f.mjs +1 -0
  60. package/types/sorted_list/module.f.mjs +1 -0
  61. package/types/sorted_set/module.f.mjs +1 -0
  62. package/types/string/module.f.mjs +1 -0
  63. package/types/string_set/module.f.mjs +1 -0
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import types, * as Types from '../types/module.f.mjs'
2
3
  import text, * as Text from '../../text/module.f.mjs'
3
4
  import * as O from '../../types/object/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import types, * as typesT from '../types/module.f.mjs'
2
3
  const { result, paramList } = types
3
4
  import text, * as textT from '../../text/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import types, * as Types from '../types/module.f.mjs'
2
3
  const { paramList } = types
3
4
  import * as Text from '../../text/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as O from '../../types/object/module.f.mjs'
2
3
  import list, * as List from '../../types/list/module.f.mjs'
3
4
  import f from '../../types/function/module.f.mjs'
@@ -1,4 +1,5 @@
1
- import package_, * as packageT from '../package/module.f.mjs'
1
+ // @ts-self-types="./module.f.d.mts"
2
+ import * as packageT from '../package/module.f.mjs'
2
3
  import module_, * as moduleT from '../module/module.f.mjs'
3
4
  const { idToString, dir } = module_
4
5
  import * as function_ from '../module/function/module.f.mjs'
@@ -1,7 +1,7 @@
1
1
  declare const _default: {};
2
2
  export default _default;
3
3
  export type Function_ = <M>(require: Require<M>) => (prior: M) => Result<M>;
4
- export type Result<M> = readonly [Result.Result<unknown, unknown>, M];
4
+ export type Result<M> = readonly [TypesResult.Result<unknown, unknown>, M];
5
5
  export type Require<M> = (path: string) => (prior: M) => Result<M>;
6
- export type Compile = (source: string) => Result.Result<Function_, unknown>;
7
- import * as Result from '../../../types/result/module.f.mjs';
6
+ export type Compile = (source: string) => TypesResult.Result<Function_, unknown>;
7
+ import * as TypesResult from '../../../types/result/module.f.mjs';
@@ -1,14 +1,16 @@
1
+ // @ts-self-types="./module.f.d.mts"
2
+
1
3
  /**
2
4
  * An IO interface for creating and running module functions.
3
5
  */
4
6
 
5
- import * as Result from '../../../types/result/module.f.mjs'
7
+ import * as TypesResult from '../../../types/result/module.f.mjs'
6
8
 
7
9
  /** @typedef {<M>(require: Require<M>) => (prior: M) => Result<M>} Function_ */
8
10
 
9
11
  /**
10
12
  * @template M
11
- * @typedef {readonly[Result.Result<unknown, unknown>, M]} Result
13
+ * @typedef {readonly[TypesResult.Result<unknown, unknown>, M]} Result
12
14
  */
13
15
 
14
16
  /**
@@ -16,6 +18,6 @@ import * as Result from '../../../types/result/module.f.mjs'
16
18
  * @typedef {(path: string) => (prior: M) => Result<M>} Require
17
19
  */
18
20
 
19
- /** @typedef {(source: string) => Result.Result<Function_, unknown>} Compile */
21
+ /** @typedef {(source: string) => TypesResult.Result<Function_, unknown>} Compile */
20
22
 
21
23
  export default {}
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as O from '../../types/object/module.f.mjs'
2
3
 
3
4
  /**
@@ -1,3 +1,5 @@
1
+ // @ts-self-types="./module.f.d.mts"
2
+
1
3
  /** @typedef {(packageName: string) => PackageMap|Package|null} PackageMap */
2
4
 
3
5
  /**
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import json, * as Json from '../../../json/module.f.mjs'
2
3
  const { isObject } = json
3
4
  import list from '../../../types/list/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import json, * as Json from '../../json/module.f.mjs'
2
3
  const { isObject } = json
3
4
  import dependencies, * as Dependencies from './dependencies/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list, * as List from '../../types/list/module.f.mjs'
2
3
  const { next, fold, reverse, first, flat, toArray, filterMap, isEmpty, concat } = list
3
4
  import string from '../../types/string/module.f.mjs'
package/dev/module.f.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ // @ts-self-types="./module.f.d.mts"
2
+
1
3
  export default {
2
4
  /** @readonly */
3
5
  todo: () => { throw 'not implemented' },
package/dev/module.mjs CHANGED
@@ -181,8 +181,12 @@ const codeAdd = i => p => m => {
181
181
  export const index = async () => {
182
182
  {
183
183
  const jj = './jsr.json'
184
+ const n = '/module.f.mjs'
184
185
  const jsr_json = JSON.parse(await readFile(jj, { encoding: 'utf8' }))
185
- const exports = Object.fromEntries(Object.keys(await loadModuleMap()).map(v => [v.replace('.f.mjs', ''), v]))
186
+ const exportsA = Object.keys(await loadModuleMap())
187
+ .filter(v => v.endsWith(n))
188
+ .map(v => [v.replace(n, ''), v])
189
+ const exports = Object.fromEntries(exportsA)
186
190
  await writeFile(
187
191
  jj,
188
192
  JSON.stringify({ ...jsr_json, exports }, null, 2))
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list from '../../types/list/module.f.mjs'
2
3
  const { fold } = list
3
4
  import sgr from '../../text/sgr/module.f.mjs'
package/djs/module.f.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ // @ts-self-types="./module.f.d.mts"
2
+
1
3
  import list, * as List from '../types/list/module.f.mjs'
2
4
  const { flat, map } = list
3
5
  import string from '../types/string/module.f.mjs'
@@ -1,3 +1,5 @@
1
+ // @ts-self-types="./module.f.d.mts"
2
+
1
3
  import result, * as Result from '../../types/result/module.f.mjs'
2
4
  import list, * as List from '../../types/list/module.f.mjs'
3
5
  const { fold, first, drop, toArray } = list
@@ -1,3 +1,5 @@
1
+ // @ts-self-types="./module.f.d.mts"
2
+
1
3
  import * as Operator from '../../types/function/operator/module.f.mjs'
2
4
  import list, * as List from '../../types/list/module.f.mjs'
3
5
  const { empty, flat, stateScan } = list
package/fsc/module.f.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import operator from '../types/function/operator/module.f.mjs'
2
3
  import range_map, * as RM from '../types/range_map/module.f.mjs'
3
4
  const { merge: rangeMapMerge, fromRange, get } = range_map
package/fsm/module.f.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list, * as List from '../types/list/module.f.mjs'
2
3
  const { equal, isEmpty, fold, toArray, scan, foldScan, empty: emptyList } = list
3
4
  import byteSet, * as byteSetT from '../types/byte_set/module.f.mjs'
package/html/module.f.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list, * as List from '../types/list/module.f.mjs'
2
3
  const { map, flatMap, flat, concat: listConcat } = list
3
4
  import s from '../types/string/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import operator, * as Operator from '../../types/function/operator/module.f.mjs'
2
3
  import range_map, * as RangeMap from '../../types/range_map/module.f.mjs'
3
4
  const { merge, fromRange, get } = range_map
package/json/module.f.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list, * as List from '../types/list/module.f.mjs'
2
3
  const { next, flat, map } = list
3
4
  import string from '../types/string/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import result, * as Result from '../../types/result/module.f.mjs'
2
3
  import list, * as List from '../../types/list/module.f.mjs'
3
4
  const { fold, first, drop, toArray } = list
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list, * as List from '../../types/list/module.f.mjs'
2
3
  const { flat, reduce, empty } = list
3
4
  import * as O from '../../types/object/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as Operator from '../../types/function/operator/module.f.mjs'
2
3
  import list, * as List from '../../types/list/module.f.mjs'
3
4
  const { empty, flat, stateScan } = list
package/jsr.json CHANGED
@@ -1,119 +1,64 @@
1
1
  {
2
2
  "name": "@functionalscript/functionalscript",
3
- "version": "0.1.603",
3
+ "version": "0.1.605",
4
4
  "exports": {
5
- "./com/cpp/module": "./com/cpp/module.f.mjs",
6
- "./com/cpp/test": "./com/cpp/test.f.mjs",
7
- "./com/cpp/testlib": "./com/cpp/testlib.f.mjs",
8
- "./com/cs/module": "./com/cs/module.f.mjs",
9
- "./com/cs/test": "./com/cs/test.f.mjs",
10
- "./com/cs/testlib": "./com/cs/testlib.f.mjs",
11
- "./com/rust/module": "./com/rust/module.f.mjs",
12
- "./com/rust/test": "./com/rust/test.f.mjs",
13
- "./com/rust/testlib": "./com/rust/testlib.f.mjs",
14
- "./com/test/build": "./com/test/build.f.mjs",
15
- "./com/types/module": "./com/types/module.f.mjs",
16
- "./com/types/testlib": "./com/types/testlib.f.mjs",
17
- "./commonjs/build/module": "./commonjs/build/module.f.mjs",
18
- "./commonjs/build/test": "./commonjs/build/test.f.mjs",
19
- "./commonjs/module": "./commonjs/module.f.mjs",
20
- "./commonjs/module/function/module": "./commonjs/module/function/module.f.mjs",
21
- "./commonjs/module/module": "./commonjs/module/module.f.mjs",
22
- "./commonjs/package/dependencies/module": "./commonjs/package/dependencies/module.f.mjs",
23
- "./commonjs/package/dependencies/test": "./commonjs/package/dependencies/test.f.mjs",
24
- "./commonjs/package/module": "./commonjs/package/module.f.mjs",
25
- "./commonjs/package/test": "./commonjs/package/test.f.mjs",
26
- "./commonjs/path/module": "./commonjs/path/module.f.mjs",
27
- "./commonjs/path/test": "./commonjs/path/test.f.mjs",
28
- "./dev/module": "./dev/module.f.mjs",
29
- "./dev/test": "./dev/test.f.mjs",
30
- "./dev/test/module": "./dev/test/module.f.mjs",
31
- "./djs/module": "./djs/module.f.mjs",
32
- "./djs/parser/module": "./djs/parser/module.f.mjs",
33
- "./djs/parser/test": "./djs/parser/test.f.mjs",
34
- "./djs/test": "./djs/test.f.mjs",
35
- "./djs/tokenizer/module": "./djs/tokenizer/module.f.mjs",
36
- "./djs/tokenizer/test": "./djs/tokenizer/test.f.mjs",
37
- "./fsc/module": "./fsc/module.f.mjs",
38
- "./fsc/test": "./fsc/test.f.mjs",
39
- "./fsm/module": "./fsm/module.f.mjs",
40
- "./fsm/test": "./fsm/test.f.mjs",
41
- "./html/module": "./html/module.f.mjs",
42
- "./html/test": "./html/test.f.mjs",
43
- "./index": "./index.f.mjs",
44
- "./js/tokenizer/module": "./js/tokenizer/module.f.mjs",
45
- "./js/tokenizer/test": "./js/tokenizer/test.f.mjs",
46
- "./json/module": "./json/module.f.mjs",
47
- "./json/parser/module": "./json/parser/module.f.mjs",
48
- "./json/parser/test": "./json/parser/test.f.mjs",
49
- "./json/serializer/module": "./json/serializer/module.f.mjs",
50
- "./json/serializer/test": "./json/serializer/test.f.mjs",
51
- "./json/test": "./json/test.f.mjs",
52
- "./json/tokenizer/module": "./json/tokenizer/module.f.mjs",
53
- "./json/tokenizer/test": "./json/tokenizer/test.f.mjs",
54
- "./nodejs/version/module": "./nodejs/version/module.f.mjs",
55
- "./nodejs/version/test": "./nodejs/version/test.f.mjs",
56
- "./prime_field/module": "./prime_field/module.f.mjs",
57
- "./prime_field/test": "./prime_field/test.f.mjs",
58
- "./secp/module": "./secp/module.f.mjs",
59
- "./secp/test": "./secp/test.f.mjs",
60
- "./sha2/module": "./sha2/module.f.mjs",
61
- "./sha2/test": "./sha2/test.f.mjs",
62
- "./text/ascii/module": "./text/ascii/module.f.mjs",
63
- "./text/ascii/test": "./text/ascii/test.f.mjs",
64
- "./text/module": "./text/module.f.mjs",
65
- "./text/sgr/module": "./text/sgr/module.f.mjs",
66
- "./text/test": "./text/test.f.mjs",
67
- "./text/utf16/module": "./text/utf16/module.f.mjs",
68
- "./text/utf16/test": "./text/utf16/test.f.mjs",
69
- "./text/utf8/module": "./text/utf8/module.f.mjs",
70
- "./text/utf8/test": "./text/utf8/test.f.mjs",
71
- "./types/array/module": "./types/array/module.f.mjs",
72
- "./types/array/test": "./types/array/test.f.mjs",
73
- "./types/bigfloat/module": "./types/bigfloat/module.f.mjs",
74
- "./types/bigfloat/test": "./types/bigfloat/test.f.mjs",
75
- "./types/bigint/module": "./types/bigint/module.f.mjs",
76
- "./types/bigint/test": "./types/bigint/test.f.mjs",
77
- "./types/btree/find/module": "./types/btree/find/module.f.mjs",
78
- "./types/btree/find/test": "./types/btree/find/test.f.mjs",
79
- "./types/btree/module": "./types/btree/module.f.mjs",
80
- "./types/btree/remove/module": "./types/btree/remove/module.f.mjs",
81
- "./types/btree/remove/test": "./types/btree/remove/test.f.mjs",
82
- "./types/btree/set/module": "./types/btree/set/module.f.mjs",
83
- "./types/btree/set/test": "./types/btree/set/test.f.mjs",
84
- "./types/btree/test": "./types/btree/test.f.mjs",
85
- "./types/btree/types/module": "./types/btree/types/module.f.mjs",
86
- "./types/byte_set/module": "./types/byte_set/module.f.mjs",
87
- "./types/byte_set/test": "./types/byte_set/test.f.mjs",
88
- "./types/function/compare/module": "./types/function/compare/module.f.mjs",
89
- "./types/function/compare/test": "./types/function/compare/test.f.mjs",
90
- "./types/function/module": "./types/function/module.f.mjs",
91
- "./types/function/operator/module": "./types/function/operator/module.f.mjs",
92
- "./types/function/test": "./types/function/test.f.mjs",
93
- "./types/list/module": "./types/list/module.f.mjs",
94
- "./types/list/test": "./types/list/test.f.mjs",
95
- "./types/map/module": "./types/map/module.f.mjs",
96
- "./types/map/test": "./types/map/test.f.mjs",
97
- "./types/nibble_set/module": "./types/nibble_set/module.f.mjs",
98
- "./types/nibble_set/test": "./types/nibble_set/test.f.mjs",
99
- "./types/nullable/module": "./types/nullable/module.f.mjs",
100
- "./types/nullable/test": "./types/nullable/test.f.mjs",
101
- "./types/number/module": "./types/number/module.f.mjs",
102
- "./types/number/test": "./types/number/test.f.mjs",
103
- "./types/object/module": "./types/object/module.f.mjs",
104
- "./types/object/test": "./types/object/test.f.mjs",
105
- "./types/range/module": "./types/range/module.f.mjs",
106
- "./types/range/test": "./types/range/test.f.mjs",
107
- "./types/range_map/module": "./types/range_map/module.f.mjs",
108
- "./types/range_map/test": "./types/range_map/test.f.mjs",
109
- "./types/result/module": "./types/result/module.f.mjs",
110
- "./types/sorted_list/module": "./types/sorted_list/module.f.mjs",
111
- "./types/sorted_list/test": "./types/sorted_list/test.f.mjs",
112
- "./types/sorted_set/module": "./types/sorted_set/module.f.mjs",
113
- "./types/sorted_set/test": "./types/sorted_set/test.f.mjs",
114
- "./types/string/module": "./types/string/module.f.mjs",
115
- "./types/string/test": "./types/string/test.f.mjs",
116
- "./types/string_set/module": "./types/string_set/module.f.mjs",
117
- "./types/string_set/test": "./types/string_set/test.f.mjs"
5
+ "./com/cpp": "./com/cpp/module.f.mjs",
6
+ "./com/cs": "./com/cs/module.f.mjs",
7
+ "./com/rust": "./com/rust/module.f.mjs",
8
+ "./com/types": "./com/types/module.f.mjs",
9
+ "./commonjs/build": "./commonjs/build/module.f.mjs",
10
+ "./commonjs": "./commonjs/module.f.mjs",
11
+ "./commonjs/module/function": "./commonjs/module/function/module.f.mjs",
12
+ "./commonjs/module": "./commonjs/module/module.f.mjs",
13
+ "./commonjs/package/dependencies": "./commonjs/package/dependencies/module.f.mjs",
14
+ "./commonjs/package": "./commonjs/package/module.f.mjs",
15
+ "./commonjs/path": "./commonjs/path/module.f.mjs",
16
+ "./dev": "./dev/module.f.mjs",
17
+ "./dev/test": "./dev/test/module.f.mjs",
18
+ "./djs": "./djs/module.f.mjs",
19
+ "./djs/parser": "./djs/parser/module.f.mjs",
20
+ "./djs/tokenizer": "./djs/tokenizer/module.f.mjs",
21
+ "./fsc": "./fsc/module.f.mjs",
22
+ "./fsm": "./fsm/module.f.mjs",
23
+ "./html": "./html/module.f.mjs",
24
+ "./js/tokenizer": "./js/tokenizer/module.f.mjs",
25
+ "./json": "./json/module.f.mjs",
26
+ "./json/parser": "./json/parser/module.f.mjs",
27
+ "./json/serializer": "./json/serializer/module.f.mjs",
28
+ "./json/tokenizer": "./json/tokenizer/module.f.mjs",
29
+ "./nodejs/version": "./nodejs/version/module.f.mjs",
30
+ "./prime_field": "./prime_field/module.f.mjs",
31
+ "./secp": "./secp/module.f.mjs",
32
+ "./sha2": "./sha2/module.f.mjs",
33
+ "./text/ascii": "./text/ascii/module.f.mjs",
34
+ "./text": "./text/module.f.mjs",
35
+ "./text/sgr": "./text/sgr/module.f.mjs",
36
+ "./text/utf16": "./text/utf16/module.f.mjs",
37
+ "./text/utf8": "./text/utf8/module.f.mjs",
38
+ "./types/array": "./types/array/module.f.mjs",
39
+ "./types/bigfloat": "./types/bigfloat/module.f.mjs",
40
+ "./types/bigint": "./types/bigint/module.f.mjs",
41
+ "./types/btree/find": "./types/btree/find/module.f.mjs",
42
+ "./types/btree": "./types/btree/module.f.mjs",
43
+ "./types/btree/remove": "./types/btree/remove/module.f.mjs",
44
+ "./types/btree/set": "./types/btree/set/module.f.mjs",
45
+ "./types/btree/types": "./types/btree/types/module.f.mjs",
46
+ "./types/byte_set": "./types/byte_set/module.f.mjs",
47
+ "./types/function/compare": "./types/function/compare/module.f.mjs",
48
+ "./types/function": "./types/function/module.f.mjs",
49
+ "./types/function/operator": "./types/function/operator/module.f.mjs",
50
+ "./types/list": "./types/list/module.f.mjs",
51
+ "./types/map": "./types/map/module.f.mjs",
52
+ "./types/nibble_set": "./types/nibble_set/module.f.mjs",
53
+ "./types/nullable": "./types/nullable/module.f.mjs",
54
+ "./types/number": "./types/number/module.f.mjs",
55
+ "./types/object": "./types/object/module.f.mjs",
56
+ "./types/range": "./types/range/module.f.mjs",
57
+ "./types/range_map": "./types/range_map/module.f.mjs",
58
+ "./types/result": "./types/result/module.f.mjs",
59
+ "./types/sorted_list": "./types/sorted_list/module.f.mjs",
60
+ "./types/sorted_set": "./types/sorted_set/module.f.mjs",
61
+ "./types/string": "./types/string/module.f.mjs",
62
+ "./types/string_set": "./types/string_set/module.f.mjs"
118
63
  }
119
64
  }
@@ -1,3 +1,5 @@
1
+ // @ts-self-types="./module.f.d.mts"
2
+
1
3
  /** @typedef {{}} Buffer */
2
4
 
3
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.1.603",
3
+ "version": "0.1.605",
4
4
  "type": "module",
5
5
  "description": "FunctionalScript is a functional subset of JavaScript",
6
6
  "main": "index.f.mjs",
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as Operator from '../types/function/operator/module.f.mjs'
2
3
  import bi from '../types/bigint/module.f.mjs'
3
4
  const { scalar_mul } = bi
package/secp/module.f.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as Operator from '../types/function/operator/module.f.mjs'
2
3
  import pf, * as Pf from '../prime_field/module.f.mjs'
3
4
  import bi from '../types/bigint/module.f.mjs'
package/sha2/module.f.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as arrayT from '../types/array/module.f.mjs'
2
3
 
3
4
  /**
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import _range, * as Range from '../../types/range/module.f.mjs'
2
3
 
3
4
  /** @type {(s: string) => (i: number) => number} */
package/text/module.f.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list, * as List from '../types/list/module.f.mjs'
2
3
  const { flatMap } = list
3
4
 
@@ -1,3 +1,5 @@
1
+ // @ts-self-types="./module.f.d.mts"
2
+
1
3
  /**
2
4
  * https://en.wikipedia.org/wiki/ANSI_escape_code#SGR
3
5
  *
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list, * as List from '../../types/list/module.f.mjs'
2
3
  import operator, * as Operator from '../../types/function/operator/module.f.mjs'
3
4
  import range from '../../types/range/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list, * as List from '../../types/list/module.f.mjs'
2
3
  import * as operator from '../../types/function/operator/module.f.mjs'
3
4
  import * as Array from '../../types/array/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import option from '../nullable/module.f.mjs'
2
3
  const { map } = option
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import bi from '../bigint/module.f.mjs'
2
3
  const { abs, sign } = bi
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import compare, * as Compare from '../function/compare/module.f.mjs'
2
3
  import * as Operator from '../function/operator/module.f.mjs'
3
4
  const { unsafeCmp } = compare
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as _ from '../types/module.f.mjs'
2
3
  import * as List from '../../list/module.f.mjs'
3
4
  import cmp, * as cmpT from '../../function/compare/module.f.mjs'
@@ -1,3 +1,5 @@
1
+ // @ts-self-types="./module.f.d.mts"
2
+
1
3
  import list, * as List from '../list/module.f.mjs'
2
4
  const { flat } = list
3
5
  import n from '../nullable/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as _ from '../types/module.f.mjs'
2
3
  import * as Cmp from '../../function/compare/module.f.mjs'
3
4
  import find, * as Find from '../find/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as _ from '../types/module.f.mjs'
2
3
  import btreeFind, * as BtreeFind from '../find/module.f.mjs'
3
4
  const { find } = btreeFind
@@ -1,3 +1,5 @@
1
+ // @ts-self-types="./module.f.d.mts"
2
+
1
3
  /**
2
4
  * @template T
3
5
  * @typedef {readonly[T]} Array1
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import f from '../function/module.f.mjs'
2
3
  const { compose } = f
3
4
  import * as RangeMap from '../range_map/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as Array from '../../array/module.f.mjs'
2
3
 
3
4
  /** @typedef {Array.Index3} Index3 */
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  /**
2
3
  * @template I
3
4
  * @template O
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  /**
2
3
  * @template A
3
4
  * @template B
@@ -1,4 +1,4 @@
1
- // @ts-self-types="module.f.d.mts"
1
+ // @ts-self-types="./module.f.d.mts"
2
2
  import function_ from '../function/module.f.mjs'
3
3
  const { identity, fn, compose } = function_
4
4
  import operator, * as Operator from '../function/operator/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as BtreeTypes from '../btree/types/module.f.mjs'
2
3
  import btf from '../btree/find/module.f.mjs'
3
4
  const { value, find } = btf
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  /** @typedef {number} NibbleSet */
2
3
  /** @typedef {number} Nibble */
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  /**
2
3
  * @template T
3
4
  * @typedef {T|null} Nullable
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list from '../list/module.f.mjs'
2
3
  const { reduce } = list
3
4
  import operator from '../function/operator/module.f.mjs'
@@ -23,7 +23,7 @@ declare const at: (name: string) => <T>(object: Map<T>) => T | null;
23
23
  declare const sort: <T>(e: List.List<Entry<T>>) => List.List<Entry<T>>;
24
24
  /** @type {<T>(e: List.List<Entry<T>>) => Map<T>} */
25
25
  declare const fromEntries: <T>(e: List.List<Entry<T>>) => Map<T>;
26
- /** @type {<T>(m: Map.Map<T>) => Map<T>} */
27
- declare const fromMap: <T>(m: Map.Map<T>) => Map<T>;
26
+ /** @type {<T>(m: BTMap.Map<T>) => Map<T>} */
27
+ declare const fromMap: <T>(m: BTMap.Map<T>) => Map<T>;
28
28
  import * as List from '../list/module.f.mjs';
29
- import * as Map from '../map/module.f.mjs';
29
+ import * as BTMap from '../map/module.f.mjs';
@@ -1,7 +1,8 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list, * as List from '../list/module.f.mjs'
2
3
  const { iterable } = list
3
- import map, * as Map from '../map/module.f.mjs'
4
- const { entries: mapEntries, fromEntries: mapFromEntries } = map
4
+ import btMap, * as BTMap from '../map/module.f.mjs'
5
+ const { entries: mapEntries, fromEntries: mapFromEntries } = btMap
5
6
  const { getOwnPropertyDescriptor, fromEntries: objectFromEntries } = Object
6
7
 
7
8
  /**
@@ -28,7 +29,7 @@ const sort = e => mapEntries(mapFromEntries(e))
28
29
  /** @type {<T>(e: List.List<Entry<T>>) => Map<T>} */
29
30
  const fromEntries = e => objectFromEntries(iterable(e))
30
31
 
31
- /** @type {<T>(m: Map.Map<T>) => Map<T>} */
32
+ /** @type {<T>(m: BTMap.Map<T>) => Map<T>} */
32
33
  const fromMap = m => fromEntries(mapEntries(m))
33
34
 
34
35
  export default {
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  /** @typedef {readonly[number,number]} Range */
2
3
 
3
4
  /** @type {(range: Range) => (i: number) => boolean} */
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import sortedList, * as SortedList from '../sorted_list/module.f.mjs'
2
3
  const { genericMerge } = sortedList
3
4
  import list from '../list/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  /**
2
3
  * @template T
3
4
  * @typedef {readonly['ok', T]} Ok
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as compare from '../function/compare/module.f.mjs'
2
3
  import list, * as List from '../list/module.f.mjs'
3
4
  import * as option from '../nullable/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as Compare from '../function/compare/module.f.mjs'
2
3
  import list from "../list/module.f.mjs"
3
4
  const { toArray } = list
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import list, * as List from '../list/module.f.mjs'
2
3
  const { reduce: listReduce, repeat: listRepeat } = list
3
4
  import f from '../function/module.f.mjs'
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./module.f.d.mts"
1
2
  import * as BtreeTypes from '../btree/types/module.f.mjs'
2
3
  import btree from '../btree/module.f.mjs'
3
4
  import btf from '../btree/find/module.f.mjs'