functionalscript 0.1.609 → 0.2.1
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/com/cpp/module.f.mjs +20 -25
- package/com/cpp/testlib.f.mjs +3 -4
- package/com/cs/module.f.mjs +18 -23
- package/com/cs/testlib.f.mjs +3 -5
- package/com/rust/module.f.mjs +25 -30
- package/com/rust/testlib.f.mjs +3 -5
- package/com/test/build.f.mjs +2 -2
- package/com/test/build.mjs +4 -4
- package/com/types/module.f.mjs +5 -12
- package/commonjs/build/module.f.mjs +23 -28
- package/commonjs/build/test.f.mjs +4 -4
- package/commonjs/module/function/module.f.mjs +0 -2
- package/commonjs/module/module.f.mjs +2 -9
- package/commonjs/module.f.mjs +0 -2
- package/commonjs/module.mjs +2 -7
- package/commonjs/package/dependencies/module.f.mjs +5 -10
- package/commonjs/package/dependencies/test.f.mjs +1 -1
- package/commonjs/package/module.f.mjs +6 -13
- package/commonjs/package/test.f.mjs +1 -1
- package/commonjs/path/module.f.mjs +12 -23
- package/commonjs/path/test.f.mjs +11 -11
- package/commonjs/test.mjs +1 -1
- package/dev/module.f.mjs +1 -4
- package/dev/module.mjs +1 -1
- package/dev/test/module.f.mjs +4 -6
- package/djs/module.f.mjs +12 -19
- package/djs/parser/module.f.mjs +18 -24
- package/djs/parser/test.f.mjs +9 -9
- package/djs/test.f.mjs +4 -4
- package/djs/tokenizer/module.f.mjs +18 -23
- package/djs/tokenizer/test.f.mjs +6 -6
- package/fsc/module.f.mjs +17 -24
- package/fsc/test.f.mjs +3 -3
- package/fsm/module.f.mjs +27 -38
- package/fsm/test.f.mjs +8 -8
- package/html/module.f.mjs +14 -23
- package/html/test.f.mjs +4 -4
- package/js/tokenizer/module.f.mjs +55 -62
- package/js/tokenizer/test.f.mjs +6 -6
- package/json/module.f.mjs +18 -31
- package/json/parser/module.f.mjs +9 -14
- package/json/parser/test.f.mjs +7 -7
- package/json/serializer/module.f.mjs +14 -29
- package/json/serializer/test.f.mjs +2 -2
- package/json/test.f.mjs +3 -3
- package/json/tokenizer/module.f.mjs +14 -19
- package/json/tokenizer/test.f.mjs +6 -6
- package/jsr.json +59 -59
- package/nodejs/version/main.mjs +1 -1
- package/nodejs/version/module.f.mjs +2 -7
- package/nodejs/version/test.f.mjs +3 -3
- package/out/com/cpp/module.f.d.mts +4 -0
- package/out/com/cpp/module.f.mjs +123 -0
- package/out/com/cpp/test.f.mjs +40 -0
- package/out/com/cpp/testlib.f.mjs +7 -0
- package/out/com/cs/module.f.d.mts +4 -0
- package/out/com/cs/module.f.mjs +95 -0
- package/out/com/cs/test.f.mjs +43 -0
- package/out/com/cs/testlib.f.mjs +7 -0
- package/{com → out/com}/rust/module.f.d.mts +3 -7
- package/out/com/rust/module.f.mjs +213 -0
- package/out/com/rust/test.f.mjs +123 -0
- package/out/com/rust/testlib.f.mjs +7 -0
- package/{com → out/com}/test/build.f.d.mts +2 -2
- package/out/com/test/build.f.mjs +98 -0
- package/out/com/test/build.mjs +40 -0
- package/{com → out/com}/types/module.f.d.mts +5 -10
- package/out/com/types/module.f.mjs +51 -0
- package/out/com/types/testlib.f.mjs +30 -0
- package/out/commonjs/build/module.f.d.mts +20 -0
- package/out/commonjs/build/module.f.mjs +107 -0
- package/out/commonjs/build/test.f.mjs +102 -0
- package/{commonjs → out/commonjs}/module/function/module.f.d.mts +0 -2
- package/out/commonjs/module/function/module.f.mjs +15 -0
- package/{commonjs → out/commonjs}/module/module.f.d.mts +16 -21
- package/out/commonjs/module/module.f.mjs +48 -0
- package/out/commonjs/module.d.mts +3 -0
- package/{commonjs → out/commonjs}/module.f.d.mts +0 -2
- package/out/commonjs/module.f.mjs +10 -0
- package/out/commonjs/module.mjs +26 -0
- package/out/commonjs/package/dependencies/module.f.d.mts +6 -0
- package/out/commonjs/package/dependencies/module.f.mjs +21 -0
- package/out/commonjs/package/dependencies/test.f.mjs +15 -0
- package/out/commonjs/package/module.f.d.mts +21 -0
- package/out/commonjs/package/module.f.mjs +40 -0
- package/out/commonjs/package/test.f.mjs +27 -0
- package/{commonjs → out/commonjs}/path/module.f.d.mts +25 -32
- package/out/commonjs/path/module.f.mjs +171 -0
- package/out/commonjs/path/test.f.mjs +231 -0
- package/out/commonjs/test.mjs +87 -0
- package/out/dev/index.mjs +2 -0
- package/out/dev/module.f.d.mts +1 -0
- package/out/dev/module.f.mjs +2 -0
- package/out/dev/module.mjs +167 -0
- package/{dev → out/dev}/test/module.f.d.mts +2 -3
- package/out/dev/test/module.f.mjs +134 -0
- package/out/dev/test.f.mjs +58 -0
- package/out/dev/test.mjs +52 -0
- package/{djs → out/djs}/module.f.d.mts +13 -18
- package/out/djs/module.f.mjs +75 -0
- package/{djs → out/djs}/parser/module.f.d.mts +11 -15
- package/out/djs/parser/module.f.mjs +432 -0
- package/out/djs/parser/test.f.mjs +535 -0
- package/out/djs/test.f.mjs +84 -0
- package/out/djs/tokenizer/module.f.d.mts +13 -0
- package/out/djs/tokenizer/module.f.mjs +87 -0
- package/out/djs/tokenizer/test.f.mjs +480 -0
- package/out/fsc/module.f.d.mts +7 -0
- package/out/fsc/module.f.mjs +105 -0
- package/out/fsc/test.f.mjs +19 -0
- package/out/fsm/module.f.d.mts +14 -0
- package/out/fsm/module.f.mjs +80 -0
- package/out/fsm/test.f.mjs +138 -0
- package/out/html/module.f.d.mts +15 -0
- package/out/html/module.f.mjs +94 -0
- package/out/html/test.f.mjs +45 -0
- package/out/issues/test.f.mjs +66 -0
- package/{js → out/js}/tokenizer/module.f.d.mts +10 -15
- package/out/js/tokenizer/module.f.mjs +686 -0
- package/out/js/tokenizer/test.f.mjs +844 -0
- package/out/json/module.f.d.mts +33 -0
- package/out/json/module.f.mjs +89 -0
- package/{json → out/json}/parser/module.f.d.mts +9 -13
- package/out/json/parser/module.f.mjs +224 -0
- package/out/json/parser/test.f.mjs +321 -0
- package/out/json/serializer/module.f.d.mts +36 -0
- package/out/json/serializer/module.f.mjs +67 -0
- package/out/json/serializer/test.f.mjs +87 -0
- package/out/json/test.f.mjs +61 -0
- package/out/json/tokenizer/module.f.d.mts +13 -0
- package/out/json/tokenizer/module.f.mjs +78 -0
- package/out/json/tokenizer/test.f.mjs +420 -0
- package/out/nanvm-lib/tests/test.f.mjs +87 -0
- package/out/nodejs/version/main.mjs +3 -0
- package/{nodejs → out/nodejs}/version/module.f.d.mts +4 -9
- package/out/nodejs/version/module.f.mjs +34 -0
- package/out/nodejs/version/test.f.mjs +97 -0
- package/{prime_field → out/prime_field}/module.f.d.mts +20 -23
- package/out/prime_field/module.f.mjs +87 -0
- package/out/prime_field/test.f.mjs +145 -0
- package/{secp → out/secp}/module.f.d.mts +27 -28
- package/out/secp/module.f.mjs +113 -0
- package/out/secp/test.f.mjs +63 -0
- package/out/sha2/module.f.d.mts +15 -0
- package/out/sha2/module.f.mjs +172 -0
- package/out/sha2/test.f.mjs +86 -0
- package/out/text/ascii/module.f.d.mts +70 -0
- package/out/text/ascii/module.f.mjs +154 -0
- package/out/text/ascii/test.f.mjs +14 -0
- package/out/text/module.f.d.mts +13 -0
- package/out/text/module.f.mjs +19 -0
- package/out/text/sgr/module.f.d.mts +12 -0
- package/out/text/sgr/module.f.mjs +17 -0
- package/out/text/test.f.mjs +19 -0
- package/out/text/utf16/module.f.d.mts +12 -0
- package/out/text/utf16/module.f.mjs +86 -0
- package/out/text/utf16/test.f.mjs +145 -0
- package/out/text/utf8/module.f.d.mts +10 -0
- package/out/text/utf8/module.f.mjs +126 -0
- package/out/text/utf8/test.f.mjs +175 -0
- package/{types → out/types}/array/module.f.d.mts +14 -24
- package/out/types/array/module.f.mjs +95 -0
- package/out/types/array/test.f.mjs +116 -0
- package/out/types/bigfloat/module.f.d.mts +6 -0
- package/out/types/bigfloat/module.f.mjs +77 -0
- package/out/types/bigfloat/test.f.mjs +349 -0
- package/out/types/bigint/module.f.d.mts +29 -0
- package/{types/bigint/module.f.d.mts → out/types/bigint/module.f.mjs} +64 -27
- package/out/types/bigint/test.f.mjs +192 -0
- package/{types → out/types}/btree/find/module.f.d.mts +20 -26
- package/out/types/btree/find/module.f.mjs +137 -0
- package/out/types/btree/find/test.f.mjs +156 -0
- package/out/types/btree/module.f.d.mts +5 -0
- package/out/types/btree/module.f.mjs +34 -0
- package/{types → out/types}/btree/remove/module.f.d.mts +7 -12
- package/out/types/btree/remove/module.f.mjs +209 -0
- package/out/types/btree/remove/test.f.mjs +638 -0
- package/{types → out/types}/btree/set/module.f.d.mts +3 -7
- package/out/types/btree/set/module.f.mjs +114 -0
- package/out/types/btree/set/test.f.mjs +390 -0
- package/out/types/btree/test.f.mjs +83 -0
- package/{types → out/types}/btree/types/module.f.d.mts +0 -2
- package/out/types/btree/types/module.f.mjs +50 -0
- package/out/types/byte_set/module.f.d.mts +25 -0
- package/out/types/byte_set/module.f.mjs +42 -0
- package/out/types/byte_set/test.f.mjs +123 -0
- package/{types → out/types}/function/compare/module.f.d.mts +9 -15
- package/out/types/function/compare/module.f.mjs +22 -0
- package/out/types/function/compare/test.f.mjs +8 -0
- package/{types → out/types}/function/module.f.d.mts +20 -27
- package/out/types/function/module.f.mjs +44 -0
- package/{types → out/types}/function/operator/module.f.d.mts +28 -43
- package/out/types/function/operator/module.f.mjs +60 -0
- package/out/types/function/test.f.mjs +15 -0
- package/out/types/list/module.f.d.mts +82 -0
- package/out/types/list/module.f.mjs +269 -0
- package/out/types/list/test.f.mjs +401 -0
- package/out/types/map/module.f.d.mts +21 -0
- package/out/types/map/module.f.mjs +54 -0
- package/out/types/map/test.f.mjs +115 -0
- package/out/types/nibble_set/module.f.d.mts +16 -0
- package/out/types/nibble_set/module.f.mjs +19 -0
- package/out/types/nibble_set/test.f.mjs +90 -0
- package/out/types/nullable/module.f.d.mts +9 -0
- package/out/types/nullable/module.f.mjs +9 -0
- package/out/types/nullable/test.f.mjs +12 -0
- package/out/types/number/module.f.d.mts +7 -0
- package/out/types/number/module.f.mjs +12 -0
- package/out/types/number/test.f.mjs +126 -0
- package/out/types/object/module.f.d.mts +22 -0
- package/out/types/object/module.f.mjs +27 -0
- package/out/types/object/test.f.mjs +17 -0
- package/out/types/range/module.f.d.mts +6 -0
- package/out/types/range/module.f.mjs +6 -0
- package/out/types/range/test.f.mjs +18 -0
- package/{types → out/types}/range_map/module.f.d.mts +9 -15
- package/out/types/range_map/module.f.mjs +84 -0
- package/out/types/range_map/test.f.mjs +201 -0
- package/out/types/result/module.d.mts +7 -0
- package/{types → out/types}/result/module.f.d.mts +6 -12
- package/out/types/result/module.f.mjs +25 -0
- package/out/types/result/module.mjs +16 -0
- package/{types → out/types}/sorted_list/module.f.d.mts +22 -28
- package/out/types/sorted_list/module.f.mjs +102 -0
- package/out/types/sorted_list/test.f.mjs +66 -0
- package/{types → out/types}/sorted_set/module.f.d.mts +6 -12
- package/out/types/sorted_set/module.f.mjs +29 -0
- package/out/types/sorted_set/test.f.mjs +80 -0
- package/out/types/string/module.f.d.mts +9 -0
- package/out/types/string/module.f.mjs +17 -0
- package/out/types/string/test.f.mjs +58 -0
- package/out/types/string_set/module.f.d.mts +13 -0
- package/out/types/string_set/module.f.mjs +29 -0
- package/out/types/string_set/test.f.mjs +65 -0
- package/package.json +5 -4
- package/prime_field/module.f.mjs +9 -12
- package/prime_field/test.f.mjs +1 -1
- package/secp/module.f.mjs +38 -39
- package/secp/test.f.mjs +4 -4
- package/sha2/module.f.mjs +7 -20
- package/sha2/test.f.mjs +4 -4
- package/text/ascii/module.f.mjs +5 -10
- package/text/ascii/test.f.mjs +3 -3
- package/text/module.f.mjs +7 -14
- package/text/sgr/module.f.mjs +2 -4
- package/text/test.f.mjs +3 -3
- package/text/utf16/module.f.mjs +17 -28
- package/text/utf16/test.f.mjs +5 -5
- package/text/utf8/module.f.mjs +9 -16
- package/text/utf8/test.f.mjs +4 -4
- package/tsconfig.json +2 -2
- package/types/array/module.f.mjs +8 -25
- package/types/array/test.f.mjs +3 -3
- package/types/bigfloat/module.f.mjs +3 -10
- package/types/bigfloat/test.f.mjs +1 -1
- package/types/bigint/module.f.mjs +11 -30
- package/types/bigint/test.f.mjs +1 -1
- package/types/btree/find/module.f.mjs +8 -17
- package/types/btree/find/test.f.mjs +7 -7
- package/types/btree/module.f.mjs +6 -11
- package/types/btree/remove/module.f.mjs +10 -17
- package/types/btree/remove/test.f.mjs +5 -5
- package/types/btree/set/module.f.mjs +4 -9
- package/types/btree/set/test.f.mjs +4 -4
- package/types/btree/test.f.mjs +9 -9
- package/types/btree/types/module.f.mjs +0 -2
- package/types/byte_set/module.f.mjs +14 -39
- package/types/byte_set/test.f.mjs +5 -5
- package/types/function/compare/module.f.mjs +3 -12
- package/types/function/compare/test.f.mjs +1 -1
- package/types/function/module.f.mjs +4 -15
- package/types/function/operator/module.f.mjs +14 -41
- package/types/function/test.f.mjs +1 -1
- package/types/list/module.f.mjs +45 -114
- package/types/list/test.f.mjs +10 -10
- package/types/map/module.f.mjs +15 -30
- package/types/map/test.f.mjs +2 -2
- package/types/nibble_set/module.f.mjs +7 -24
- package/types/nibble_set/test.f.mjs +2 -2
- package/types/nullable/module.f.mjs +2 -9
- package/types/nullable/test.f.mjs +1 -1
- package/types/number/module.f.mjs +8 -19
- package/types/number/test.f.mjs +1 -1
- package/types/object/module.f.mjs +9 -20
- package/types/object/test.f.mjs +1 -1
- package/types/range/module.f.mjs +2 -9
- package/types/range/test.f.mjs +1 -1
- package/types/range_map/module.f.mjs +9 -18
- package/types/range_map/test.f.mjs +32 -32
- package/types/result/module.f.mjs +3 -12
- package/types/result/module.mjs +2 -2
- package/types/sorted_list/module.f.mjs +10 -19
- package/types/sorted_list/test.f.mjs +7 -7
- package/types/sorted_set/module.f.mjs +7 -16
- package/types/sorted_set/test.f.mjs +7 -7
- package/types/string/module.f.mjs +10 -21
- package/types/string/test.f.mjs +2 -2
- package/types/string_set/module.f.mjs +12 -27
- package/types/string_set/test.f.mjs +1 -1
- package/com/cpp/module.f.d.mts +0 -8
- package/com/cs/module.f.d.mts +0 -8
- package/commonjs/build/module.f.d.mts +0 -24
- package/commonjs/module.d.mts +0 -7
- package/commonjs/package/dependencies/module.f.d.mts +0 -10
- package/commonjs/package/module.f.d.mts +0 -27
- package/dev/module.f.d.mts +0 -4
- package/djs/tokenizer/module.f.d.mts +0 -17
- package/fsc/module.f.d.mts +0 -12
- package/fsm/module.f.d.mts +0 -21
- package/html/module.f.d.mts +0 -20
- package/json/module.f.d.mts +0 -41
- package/json/serializer/module.f.d.mts +0 -45
- package/json/tokenizer/module.f.d.mts +0 -17
- package/sha2/module.f.d.mts +0 -23
- package/text/ascii/module.f.d.mts +0 -73
- package/text/module.f.d.mts +0 -18
- package/text/sgr/module.f.d.mts +0 -14
- package/text/utf16/module.f.d.mts +0 -19
- package/text/utf8/module.f.d.mts +0 -15
- package/types/bigfloat/module.f.d.mts +0 -11
- package/types/btree/module.f.d.mts +0 -9
- package/types/byte_set/module.f.d.mts +0 -38
- package/types/list/module.f.d.mts +0 -117
- package/types/map/module.f.d.mts +0 -30
- package/types/nibble_set/module.f.d.mts +0 -26
- package/types/nullable/module.f.d.mts +0 -14
- package/types/number/module.f.d.mts +0 -13
- package/types/object/module.f.d.mts +0 -29
- package/types/range/module.f.d.mts +0 -11
- package/types/result/module.d.mts +0 -7
- package/types/string/module.f.d.mts +0 -15
- package/types/string_set/module.f.d.mts +0 -21
- /package/{com → out/com}/cpp/test.f.d.mts +0 -0
- /package/{com → out/com}/cpp/testlib.f.d.mts +0 -0
- /package/{com → out/com}/cs/test.f.d.mts +0 -0
- /package/{com → out/com}/cs/testlib.f.d.mts +0 -0
- /package/{com → out/com}/rust/test.f.d.mts +0 -0
- /package/{com → out/com}/rust/testlib.f.d.mts +0 -0
- /package/{com → out/com}/test/build.d.mts +0 -0
- /package/{com → out/com}/types/testlib.f.d.mts +0 -0
- /package/{commonjs → out/commonjs}/build/test.f.d.mts +0 -0
- /package/{commonjs → out/commonjs}/package/dependencies/test.f.d.mts +0 -0
- /package/{commonjs → out/commonjs}/package/test.f.d.mts +0 -0
- /package/{commonjs → out/commonjs}/path/test.f.d.mts +0 -0
- /package/{commonjs → out/commonjs}/test.d.mts +0 -0
- /package/{dev → out/dev}/index.d.mts +0 -0
- /package/{dev → out/dev}/module.d.mts +0 -0
- /package/{dev → out/dev}/test.d.mts +0 -0
- /package/{dev → out/dev}/test.f.d.mts +0 -0
- /package/{djs → out/djs}/parser/test.f.d.mts +0 -0
- /package/{djs → out/djs}/test.f.d.mts +0 -0
- /package/{djs → out/djs}/tokenizer/test.f.d.mts +0 -0
- /package/{fsc → out/fsc}/test.f.d.mts +0 -0
- /package/{fsm → out/fsm}/test.f.d.mts +0 -0
- /package/{html → out/html}/test.f.d.mts +0 -0
- /package/{issues → out/issues}/test.f.d.mts +0 -0
- /package/{js → out/js}/tokenizer/test.f.d.mts +0 -0
- /package/{json → out/json}/parser/test.f.d.mts +0 -0
- /package/{json → out/json}/serializer/test.f.d.mts +0 -0
- /package/{json → out/json}/test.f.d.mts +0 -0
- /package/{json → out/json}/tokenizer/test.f.d.mts +0 -0
- /package/{nanvm-lib → out/nanvm-lib}/tests/test.f.d.mts +0 -0
- /package/{nodejs → out/nodejs}/version/main.d.mts +0 -0
- /package/{nodejs → out/nodejs}/version/test.f.d.mts +0 -0
- /package/{prime_field → out/prime_field}/test.f.d.mts +0 -0
- /package/{secp → out/secp}/test.f.d.mts +0 -0
- /package/{sha2 → out/sha2}/test.f.d.mts +0 -0
- /package/{text → out/text}/ascii/test.f.d.mts +0 -0
- /package/{text → out/text}/test.f.d.mts +0 -0
- /package/{text → out/text}/utf16/test.f.d.mts +0 -0
- /package/{text → out/text}/utf8/test.f.d.mts +0 -0
- /package/{types → out/types}/array/test.f.d.mts +0 -0
- /package/{types → out/types}/bigfloat/test.f.d.mts +0 -0
- /package/{types → out/types}/bigint/test.f.d.mts +0 -0
- /package/{types → out/types}/btree/find/test.f.d.mts +0 -0
- /package/{types → out/types}/btree/remove/test.f.d.mts +0 -0
- /package/{types → out/types}/btree/set/test.f.d.mts +0 -0
- /package/{types → out/types}/btree/test.f.d.mts +0 -0
- /package/{types → out/types}/byte_set/test.f.d.mts +0 -0
- /package/{types → out/types}/function/compare/test.f.d.mts +0 -0
- /package/{types → out/types}/function/test.f.d.mts +0 -0
- /package/{types → out/types}/list/test.f.d.mts +0 -0
- /package/{types → out/types}/map/test.f.d.mts +0 -0
- /package/{types → out/types}/nibble_set/test.f.d.mts +0 -0
- /package/{types → out/types}/nullable/test.f.d.mts +0 -0
- /package/{types → out/types}/number/test.f.d.mts +0 -0
- /package/{types → out/types}/object/test.f.d.mts +0 -0
- /package/{types → out/types}/range/test.f.d.mts +0 -0
- /package/{types → out/types}/range_map/test.f.d.mts +0 -0
- /package/{types → out/types}/sorted_list/test.f.d.mts +0 -0
- /package/{types → out/types}/sorted_set/test.f.d.mts +0 -0
- /package/{types → out/types}/string/test.f.d.mts +0 -0
- /package/{types → out/types}/string_set/test.f.d.mts +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { dependencies };
|
|
3
|
-
export { isPackageJson };
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export type PackageJson = {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly version: string;
|
|
9
|
-
readonly dependencies?: Dependencies.DependenciesJson;
|
|
10
|
-
};
|
|
11
|
-
export type Package = {
|
|
12
|
-
readonly dependency: (localPackageId: string) => string | null;
|
|
13
|
-
readonly file: (localFileId: string) => string | null;
|
|
14
|
-
};
|
|
15
|
-
export type Get = (packageId: string) => Package | null;
|
|
16
|
-
import dependencies from './dependencies/module.f.mjs';
|
|
17
|
-
/**
|
|
18
|
-
* @typedef {{
|
|
19
|
-
* readonly name: string
|
|
20
|
-
* readonly version: string
|
|
21
|
-
* readonly dependencies?: Dependencies.DependenciesJson
|
|
22
|
-
* }} PackageJson
|
|
23
|
-
*/
|
|
24
|
-
/** @type {(j: Json.Unknown) => j is PackageJson} */
|
|
25
|
-
declare const isPackageJson: (j: Json.Unknown) => j is PackageJson;
|
|
26
|
-
import * as Dependencies from './dependencies/module.f.mjs';
|
|
27
|
-
import * as Json from '../../json/module.f.mjs';
|
package/dev/module.f.d.mts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { tokenize };
|
|
3
|
-
}
|
|
4
|
-
export default _default;
|
|
5
|
-
export type DjsToken = {
|
|
6
|
-
readonly kind: "true" | "false" | "null";
|
|
7
|
-
} | {
|
|
8
|
-
readonly kind: "{" | "}" | ":" | "," | "[" | "]" | "." | "=";
|
|
9
|
-
} | jsTokenizerT.StringToken | jsTokenizerT.NumberToken | jsTokenizerT.ErrorToken | jsTokenizerT.IdToken | jsTokenizerT.BigIntToken | jsTokenizerT.WhitespaceToken | jsTokenizerT.NewLineToken;
|
|
10
|
-
export type ScanState = {
|
|
11
|
-
readonly kind: "def" | "-";
|
|
12
|
-
};
|
|
13
|
-
export type ScanInput = jsTokenizerT.JsToken | null;
|
|
14
|
-
/** @type {(input: List.List<number>) => List.List<DjsToken>} */
|
|
15
|
-
declare const tokenize: (input: List.List<number>) => List.List<DjsToken>;
|
|
16
|
-
import * as jsTokenizerT from '../../js/tokenizer/module.f.mjs';
|
|
17
|
-
import * as List from '../../types/list/module.f.mjs';
|
package/fsc/module.f.d.mts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { terminal };
|
|
3
|
-
export { init };
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export type Result = readonly [readonly string[], ToResult];
|
|
7
|
-
export type ToResult = (codePoint: number) => Result;
|
|
8
|
-
export type CreateToResult<T> = (state: T) => ToResult;
|
|
9
|
-
export type State<T> = RM.RangeMapArray<CreateToResult<T>>;
|
|
10
|
-
declare const terminal: -1;
|
|
11
|
-
declare const init: ToResult;
|
|
12
|
-
import * as RM from '../types/range_map/module.f.mjs';
|
package/fsm/module.f.d.mts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { dfa };
|
|
3
|
-
export { run };
|
|
4
|
-
export { toRange };
|
|
5
|
-
export { toUnion };
|
|
6
|
-
}
|
|
7
|
-
export default _default;
|
|
8
|
-
export type Rule = readonly [string, byteSetT.ByteSet, string];
|
|
9
|
-
export type Grammar = List.List<Rule>;
|
|
10
|
-
export type Dfa = { readonly [state in string]: RM.RangeMapArray<string>; };
|
|
11
|
-
/** @type {(grammar: Grammar) => Dfa} */
|
|
12
|
-
declare const dfa: (grammar: Grammar) => Dfa;
|
|
13
|
-
/** @type {(dfa: Dfa) => (input: List.List<number>) => List.List<string>} */
|
|
14
|
-
declare const run: (dfa: Dfa) => (input: List.List<number>) => List.List<string>;
|
|
15
|
-
/** @type {(s: string) => byteSetT.ByteSet} */
|
|
16
|
-
declare const toRange: (s: string) => byteSetT.ByteSet;
|
|
17
|
-
/** @type {(s: string) => byteSetT.ByteSet} */
|
|
18
|
-
declare const toUnion: (s: string) => byteSetT.ByteSet;
|
|
19
|
-
import * as byteSetT from '../types/byte_set/module.f.mjs';
|
|
20
|
-
import * as List from '../types/list/module.f.mjs';
|
|
21
|
-
import * as RM from '../types/range_map/module.f.mjs';
|
package/html/module.f.d.mts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { element };
|
|
3
|
-
export { html };
|
|
4
|
-
export { htmlToString };
|
|
5
|
-
}
|
|
6
|
-
export default _default;
|
|
7
|
-
export type Tag = string;
|
|
8
|
-
export type Element1 = readonly [Tag];
|
|
9
|
-
export type Element2A = readonly [Tag, Attributes];
|
|
10
|
-
export type Element2N = readonly [Tag, readonly Node[]];
|
|
11
|
-
export type Element3 = readonly [Tag, Attributes, Nodes];
|
|
12
|
-
export type Element = Element1 | Element2A | Element2N | Element3;
|
|
13
|
-
export type Attributes = { readonly [k in string]: string; };
|
|
14
|
-
export type Nodes = List.List<Node>;
|
|
15
|
-
export type Node = Element | string;
|
|
16
|
-
/** @type {(element: Element) => List.List<string>} */
|
|
17
|
-
declare const element: (element: Element) => List.List<string>;
|
|
18
|
-
declare const html: import("../types/function/module.f.mjs").Func<Element, List.List<string>>;
|
|
19
|
-
declare const htmlToString: import("../types/function/module.f.mjs").Func<Element, string>;
|
|
20
|
-
import * as List from '../types/list/module.f.mjs';
|
package/json/module.f.d.mts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { setProperty };
|
|
3
|
-
export { stringify };
|
|
4
|
-
export { serialize };
|
|
5
|
-
export { parse };
|
|
6
|
-
export { isObject };
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
export type Object = { readonly [k in string]: Unknown; };
|
|
10
|
-
export type Array = readonly Unknown[];
|
|
11
|
-
export type Unknown = Object | boolean | string | number | null | Array;
|
|
12
|
-
export type Entry = O.Entry<Unknown>;
|
|
13
|
-
export type Entries = (List.List<Entry>);
|
|
14
|
-
export type MapEntries = (entries: Entries) => Entries;
|
|
15
|
-
/**
|
|
16
|
-
* @typedef {{
|
|
17
|
-
* readonly [k in string]: Unknown
|
|
18
|
-
* }} Object
|
|
19
|
-
*/
|
|
20
|
-
/** @typedef {readonly Unknown[]} Array */
|
|
21
|
-
/** @typedef {Object|boolean|string|number|null|Array} Unknown */
|
|
22
|
-
/** @type {(value: Unknown) => (path: List.List<string>) => (src: Unknown) => Unknown} */
|
|
23
|
-
declare const setProperty: (value: Unknown) => (path: List.List<string>) => (src: Unknown) => Unknown;
|
|
24
|
-
/**
|
|
25
|
-
* The standard `JSON.stringify` rules determined by
|
|
26
|
-
* https://262.ecma-international.org/6.0/#sec-ordinary-object-internal-methods-and-internal-slots-ownpropertykeys
|
|
27
|
-
*
|
|
28
|
-
* @type {(mapEntries: MapEntries) => (value: Unknown) => string}
|
|
29
|
-
*/
|
|
30
|
-
declare const stringify: (mapEntries: MapEntries) => (value: Unknown) => string;
|
|
31
|
-
/** @typedef {O.Entry<Unknown>} Entry*/
|
|
32
|
-
/** @typedef {(List.List<Entry>)} Entries */
|
|
33
|
-
/** @typedef {(entries: Entries) => Entries} MapEntries */
|
|
34
|
-
/** @type {(mapEntries: MapEntries) => (value: Unknown) => List.List<string>} */
|
|
35
|
-
declare const serialize: (mapEntries: MapEntries) => (value: Unknown) => List.List<string>;
|
|
36
|
-
/** @type {(value: string) => Unknown} */
|
|
37
|
-
declare const parse: (value: string) => Unknown;
|
|
38
|
-
/** @type {(value: Unknown) => value is Object} */
|
|
39
|
-
declare const isObject: (value: Unknown) => value is Object;
|
|
40
|
-
import * as O from '../types/object/module.f.mjs';
|
|
41
|
-
import * as List from '../types/list/module.f.mjs';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { objectWrap };
|
|
3
|
-
export { arrayWrap };
|
|
4
|
-
export { stringSerialize };
|
|
5
|
-
export { numberSerialize };
|
|
6
|
-
export { nullSerialize };
|
|
7
|
-
export { boolSerialize };
|
|
8
|
-
}
|
|
9
|
-
export default _default;
|
|
10
|
-
/**
|
|
11
|
-
* <T>
|
|
12
|
-
*/
|
|
13
|
-
export type Obj<T> = { readonly [k in string]: Unknown<T>; };
|
|
14
|
-
/**
|
|
15
|
-
* <T>
|
|
16
|
-
*/
|
|
17
|
-
export type Arr<T> = readonly Unknown<T>[];
|
|
18
|
-
export type Primitive = boolean | string | number | null;
|
|
19
|
-
/**
|
|
20
|
-
* <T>
|
|
21
|
-
*/
|
|
22
|
-
export type Unknown<T> = Arr<T> | Obj<T> | null | T;
|
|
23
|
-
/**
|
|
24
|
-
* <T>
|
|
25
|
-
*/
|
|
26
|
-
export type Entry<T> = O.Entry<Unknown<T>>;
|
|
27
|
-
/**
|
|
28
|
-
* <T>
|
|
29
|
-
*/
|
|
30
|
-
export type Entries<T> = (List.List<Entry<T>>);
|
|
31
|
-
/**
|
|
32
|
-
* <T>
|
|
33
|
-
*/
|
|
34
|
-
export type MapEntries<T> = (entries: Entries<T>) => Entries<T>;
|
|
35
|
-
declare const objectWrap: (input: List.List<List.List<string>>) => List.List<string>;
|
|
36
|
-
declare const arrayWrap: (input: List.List<List.List<string>>) => List.List<string>;
|
|
37
|
-
/** @type {(_: string) => List.List<string>} */
|
|
38
|
-
declare const stringSerialize: (_: string) => List.List<string>;
|
|
39
|
-
/** @type {(_: number) => List.List<string>} */
|
|
40
|
-
declare const numberSerialize: (_: number) => List.List<string>;
|
|
41
|
-
declare const nullSerialize: string[];
|
|
42
|
-
/** @type {(_: boolean) => List.List<string>} */
|
|
43
|
-
declare const boolSerialize: (_: boolean) => List.List<string>;
|
|
44
|
-
import * as O from '../../types/object/module.f.mjs';
|
|
45
|
-
import * as List from '../../types/list/module.f.mjs';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { tokenize };
|
|
3
|
-
}
|
|
4
|
-
export default _default;
|
|
5
|
-
export type JsonToken = {
|
|
6
|
-
readonly kind: "true" | "false" | "null";
|
|
7
|
-
} | {
|
|
8
|
-
readonly kind: "{" | "}" | ":" | "," | "[" | "]";
|
|
9
|
-
} | JsTokenizer.StringToken | JsTokenizer.NumberToken | JsTokenizer.ErrorToken;
|
|
10
|
-
export type ScanState = {
|
|
11
|
-
readonly kind: "def" | "-";
|
|
12
|
-
};
|
|
13
|
-
export type ScanInput = JsTokenizer.JsToken | null;
|
|
14
|
-
/** @type {(input: List.List<number>) => List.List<JsonToken>} */
|
|
15
|
-
declare const tokenize: (input: List.List<number>) => List.List<JsonToken>;
|
|
16
|
-
import * as JsTokenizer from '../../js/tokenizer/module.f.mjs';
|
|
17
|
-
import * as List from '../../types/list/module.f.mjs';
|
package/sha2/module.f.d.mts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { padding };
|
|
3
|
-
export { computeSha256 };
|
|
4
|
-
export { computeSha224 };
|
|
5
|
-
export { compress256 };
|
|
6
|
-
export { compress224 };
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
export type HashInput = {
|
|
10
|
-
readonly f: (i: number) => number;
|
|
11
|
-
readonly length: number;
|
|
12
|
-
};
|
|
13
|
-
export type Hash8 = arrayT.Array8<number>;
|
|
14
|
-
export type Array16 = arrayT.Array16<number>;
|
|
15
|
-
/** @type {(input: readonly number[]) => (bits: number) => HashInput} */
|
|
16
|
-
declare const padding: (input: readonly number[]) => (bits: number) => HashInput;
|
|
17
|
-
/** @type {(input: readonly number[]) => (bitsCount: number) => Hash8} */
|
|
18
|
-
declare const computeSha256: (input: readonly number[]) => (bitsCount: number) => Hash8;
|
|
19
|
-
/** @type {(input: readonly number[]) => (bitsCount: number) => Hash8} */
|
|
20
|
-
declare const computeSha224: (input: readonly number[]) => (bitsCount: number) => Hash8;
|
|
21
|
-
declare const compress256: (data: Array16) => Hash8;
|
|
22
|
-
declare const compress224: (data: Array16) => Hash8;
|
|
23
|
-
import * as arrayT from '../types/array/module.f.mjs';
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { one };
|
|
3
|
-
export { range };
|
|
4
|
-
export let backspace: number;
|
|
5
|
-
export let ht: number;
|
|
6
|
-
export let lf: number;
|
|
7
|
-
export let ff: number;
|
|
8
|
-
export let cr: number;
|
|
9
|
-
export let space: number;
|
|
10
|
-
export let exclamationMark: number;
|
|
11
|
-
export let quotationMark: number;
|
|
12
|
-
export let numberSign: number;
|
|
13
|
-
export let dollarSign: number;
|
|
14
|
-
export let percentSign: number;
|
|
15
|
-
export let ampersand: number;
|
|
16
|
-
export let apostrophe: number;
|
|
17
|
-
export let leftParenthesis: number;
|
|
18
|
-
export let rightParenthesis: number;
|
|
19
|
-
export let asterisk: number;
|
|
20
|
-
export let plusSign: number;
|
|
21
|
-
export let comma: number;
|
|
22
|
-
export let hyphenMinus: number;
|
|
23
|
-
export let fullStop: number;
|
|
24
|
-
export let solidus: number;
|
|
25
|
-
export let digitRange: Range.Range;
|
|
26
|
-
export let digit0: number;
|
|
27
|
-
export let digit1: number;
|
|
28
|
-
export let digit2: number;
|
|
29
|
-
export let digit3: number;
|
|
30
|
-
export let digit4: number;
|
|
31
|
-
export let digit5: number;
|
|
32
|
-
export let digit6: number;
|
|
33
|
-
export let digit7: number;
|
|
34
|
-
export let digit8: number;
|
|
35
|
-
export let digit9: number;
|
|
36
|
-
export let colon: number;
|
|
37
|
-
export let semicolon: number;
|
|
38
|
-
export let lessThanSign: number;
|
|
39
|
-
export let equalsSign: number;
|
|
40
|
-
export let greaterThanSign: number;
|
|
41
|
-
export let questionMark: number;
|
|
42
|
-
export let commercialAt: number;
|
|
43
|
-
export let latinCapitalLetterRange: Range.Range;
|
|
44
|
-
export let latinCapitalLetterA: number;
|
|
45
|
-
export let latinCapitalLetterE: number;
|
|
46
|
-
export let latinCapitalLetterF: number;
|
|
47
|
-
export let leftSquareBracket: number;
|
|
48
|
-
export let reverseSolidus: number;
|
|
49
|
-
export let rightSquareBracket: number;
|
|
50
|
-
export let circumflexAccent: number;
|
|
51
|
-
export let lowLine: number;
|
|
52
|
-
export let graveAccent: number;
|
|
53
|
-
export let latinSmallLetterRange: Range.Range;
|
|
54
|
-
export let latinSmallLetterA: number;
|
|
55
|
-
export let latinSmallLetterB: number;
|
|
56
|
-
export let latinSmallLetterE: number;
|
|
57
|
-
export let latinSmallLetterF: number;
|
|
58
|
-
export let latinSmallLetterN: number;
|
|
59
|
-
export let latinSmallLetterR: number;
|
|
60
|
-
export let latinSmallLetterT: number;
|
|
61
|
-
export let latinSmallLetterU: number;
|
|
62
|
-
export let latinSmallLetterZ: number;
|
|
63
|
-
export let leftCurlyBracket: number;
|
|
64
|
-
export let verticalLine: number;
|
|
65
|
-
export let rightCurlyBracket: number;
|
|
66
|
-
export let tilde: number;
|
|
67
|
-
}
|
|
68
|
-
export default _default;
|
|
69
|
-
/** @type {(s: string) => number} */
|
|
70
|
-
declare const one: (s: string) => number;
|
|
71
|
-
/** @type {(s: string) => Range.Range} */
|
|
72
|
-
declare const range: (s: string) => Range.Range;
|
|
73
|
-
import * as Range from '../../types/range/module.f.mjs';
|
package/text/module.f.d.mts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { flat };
|
|
3
|
-
export { curly };
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export type Block = ItemThunk | ItemArray;
|
|
7
|
-
export type ItemArray = readonly Item[];
|
|
8
|
-
export type ItemThunk = () => List.List<Item>;
|
|
9
|
-
export type Item = string | ItemArray | ItemThunk;
|
|
10
|
-
/** @typedef {ItemThunk|ItemArray} Block */
|
|
11
|
-
/** @typedef {readonly Item[]} ItemArray */
|
|
12
|
-
/** @typedef {() => List.List<Item>} ItemThunk */
|
|
13
|
-
/** @typedef {string|ItemArray|ItemThunk} Item */
|
|
14
|
-
/** @type {(indent: string) => (text: Block) => List.List<string>} */
|
|
15
|
-
declare const flat: (indent: string) => (text: Block) => List.List<string>;
|
|
16
|
-
/** @type {(type: string) => (name: string) => (body: Block) => Block} */
|
|
17
|
-
declare const curly: (type: string) => (name: string) => (body: Block) => Block;
|
|
18
|
-
import * as List from '../types/list/module.f.mjs';
|
package/text/sgr/module.f.d.mts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { sgr };
|
|
3
|
-
export let reset: string;
|
|
4
|
-
export let bold: string;
|
|
5
|
-
export let fgRed: string;
|
|
6
|
-
export let fgGreen: string;
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
/**
|
|
10
|
-
* https://en.wikipedia.org/wiki/ANSI_escape_code#SGR
|
|
11
|
-
*
|
|
12
|
-
* @type {(c: number) => string}
|
|
13
|
-
*/
|
|
14
|
-
declare const sgr: (c: number) => string;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { fromCodePointList };
|
|
3
|
-
export { toCodePointList };
|
|
4
|
-
export { stringToList };
|
|
5
|
-
export { listToString };
|
|
6
|
-
}
|
|
7
|
-
export default _default;
|
|
8
|
-
export type WordOrEof = u16 | null;
|
|
9
|
-
export type Utf16State = number | null;
|
|
10
|
-
export type u16 = number;
|
|
11
|
-
export type i32 = number;
|
|
12
|
-
declare const fromCodePointList: (input: List.List<number>) => List.Thunk<number>;
|
|
13
|
-
/** @type {(input: List.List<u16>) => List.List<i32>} */
|
|
14
|
-
declare const toCodePointList: (input: List.List<u16>) => List.List<i32>;
|
|
15
|
-
/** @type {(s: string) => List.List<u16>} */
|
|
16
|
-
declare const stringToList: (s: string) => List.List<u16>;
|
|
17
|
-
/** @type {(input: List.List<u16>) => string} */
|
|
18
|
-
declare const listToString: (input: List.List<u16>) => string;
|
|
19
|
-
import * as List from '../../types/list/module.f.mjs';
|
package/text/utf8/module.f.d.mts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { fromCodePointList };
|
|
3
|
-
export { toCodePointList };
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export type ByteOrEof = u8 | null;
|
|
7
|
-
export type Utf8NonEmptyState = Array.Array1<number> | Array.Array2<number> | Array.Array3<number>;
|
|
8
|
-
export type Utf8State = null | Utf8NonEmptyState;
|
|
9
|
-
export type u8 = number;
|
|
10
|
-
export type i32 = number;
|
|
11
|
-
declare const fromCodePointList: (input: List.List<number>) => List.Thunk<number>;
|
|
12
|
-
/** @type {(input: List.List<u8>) => List.List<i32>} */
|
|
13
|
-
declare const toCodePointList: (input: List.List<u8>) => List.List<i32>;
|
|
14
|
-
import * as Array from '../../types/array/module.f.mjs';
|
|
15
|
-
import * as List from '../../types/list/module.f.mjs';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { decToBin };
|
|
3
|
-
export { multiply };
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export type BigFloat = readonly [bigint, number];
|
|
7
|
-
export type BigFloatWithRemainder = readonly [BigFloat, bigint];
|
|
8
|
-
/** @type {(dec: BigFloat) => BigFloat} */
|
|
9
|
-
declare const decToBin: (dec: BigFloat) => BigFloat;
|
|
10
|
-
/** @type {(b: BigFloat) => (mul: bigint) => BigFloat} */
|
|
11
|
-
declare const multiply: (b: BigFloat) => (mul: bigint) => BigFloat;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let empty: null;
|
|
3
|
-
export { values };
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
/** @type {<T>(tree: _.Tree<T>) => List.List<T>} */
|
|
7
|
-
declare const values: <T>(tree: _.Tree<T>) => List.List<T>;
|
|
8
|
-
import * as _ from './types/module.f.mjs';
|
|
9
|
-
import * as List from '../list/module.f.mjs';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { empty };
|
|
3
|
-
export { universe };
|
|
4
|
-
export { has };
|
|
5
|
-
export { set };
|
|
6
|
-
export { unset };
|
|
7
|
-
export { one };
|
|
8
|
-
export { union };
|
|
9
|
-
export { setRange };
|
|
10
|
-
export { range };
|
|
11
|
-
export { complement };
|
|
12
|
-
export { toRangeMap };
|
|
13
|
-
}
|
|
14
|
-
export default _default;
|
|
15
|
-
export type ByteSet = bigint;
|
|
16
|
-
export type Byte = number;
|
|
17
|
-
declare const empty: 0n;
|
|
18
|
-
declare const universe: 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn;
|
|
19
|
-
/** @typedef {bigint} ByteSet */
|
|
20
|
-
/** @typedef {number} Byte */
|
|
21
|
-
/** @type {(n: Byte) => (s: ByteSet) => boolean} */
|
|
22
|
-
declare const has: (n: Byte) => (s: ByteSet) => boolean;
|
|
23
|
-
declare const set: import("../function/module.f.mjs").Func<number, (b: ByteSet) => ByteSet>;
|
|
24
|
-
/** @type {(n: Byte) => (s: ByteSet) => ByteSet} */
|
|
25
|
-
declare const unset: (n: Byte) => (s: ByteSet) => ByteSet;
|
|
26
|
-
/** @type {(n: Byte) => ByteSet} */
|
|
27
|
-
declare const one: (n: Byte) => ByteSet;
|
|
28
|
-
/** @type {(a: ByteSet) => (b: ByteSet) => ByteSet} */
|
|
29
|
-
declare const union: (a: ByteSet) => (b: ByteSet) => ByteSet;
|
|
30
|
-
declare const setRange: import("../function/module.f.mjs").Func<readonly [number, number], (b: ByteSet) => ByteSet>;
|
|
31
|
-
/** @type {(r: readonly[Byte, Byte]) => ByteSet} */
|
|
32
|
-
declare const range: (r: readonly [Byte, Byte]) => ByteSet;
|
|
33
|
-
/** @type {(n: ByteSet) => ByteSet} */
|
|
34
|
-
declare const complement: (n: ByteSet) => ByteSet;
|
|
35
|
-
/** @type {(n: ByteSet) => (s: string) => RangeMap.RangeMap<SortedSet.SortedSet<string>>} */
|
|
36
|
-
declare const toRangeMap: (n: ByteSet) => (s: string) => RangeMap.RangeMap<SortedSet.SortedSet<string>>;
|
|
37
|
-
import * as RangeMap from '../range_map/module.f.mjs';
|
|
38
|
-
import * as SortedSet from '../sorted_set/module.f.mjs';
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let empty: null;
|
|
3
|
-
export { concat };
|
|
4
|
-
export { next };
|
|
5
|
-
export { iterable };
|
|
6
|
-
export { toArray };
|
|
7
|
-
export { flat };
|
|
8
|
-
export { map };
|
|
9
|
-
export { flatMap };
|
|
10
|
-
export { filter };
|
|
11
|
-
export { filterMap };
|
|
12
|
-
export { takeWhile };
|
|
13
|
-
export { take };
|
|
14
|
-
export { dropWhile };
|
|
15
|
-
export { drop };
|
|
16
|
-
export { first };
|
|
17
|
-
export { last };
|
|
18
|
-
export { find };
|
|
19
|
-
export { some };
|
|
20
|
-
export { every };
|
|
21
|
-
export { isEmpty };
|
|
22
|
-
export { includes };
|
|
23
|
-
export { countdown };
|
|
24
|
-
export { repeat };
|
|
25
|
-
export { cycle };
|
|
26
|
-
export { scan };
|
|
27
|
-
export { stateScan };
|
|
28
|
-
export { foldScan };
|
|
29
|
-
export { fold };
|
|
30
|
-
export { reduce };
|
|
31
|
-
export { length };
|
|
32
|
-
export { entries };
|
|
33
|
-
export { reverse };
|
|
34
|
-
export { zip };
|
|
35
|
-
export { equal };
|
|
36
|
-
}
|
|
37
|
-
export default _default;
|
|
38
|
-
export type List<T> = NotLazy<T> | Thunk<T>;
|
|
39
|
-
export type NotLazy<T> = Result<T> | Concat<T> | readonly T[];
|
|
40
|
-
export type Empty = null;
|
|
41
|
-
export type Result<T> = Empty | NonEmpty<T>;
|
|
42
|
-
export type Thunk<T> = () => List<T>;
|
|
43
|
-
export type NonEmpty<T> = {
|
|
44
|
-
readonly first: T;
|
|
45
|
-
readonly tail: List<T>;
|
|
46
|
-
};
|
|
47
|
-
export type Concat<T> = {
|
|
48
|
-
readonly head: List<T>;
|
|
49
|
-
readonly tail: List<T>;
|
|
50
|
-
};
|
|
51
|
-
export type Entry<T> = readonly [number, T];
|
|
52
|
-
/** @type {<T>(head: List<T>) => (tail: List<T>) => List<T>} */
|
|
53
|
-
declare const concat: <T>(head: List<T>) => (tail: List<T>) => List<T>;
|
|
54
|
-
/** @type {<T>(list: List<T>) => Result<T>} */
|
|
55
|
-
declare const next: <T>(list: List<T>) => Result<T>;
|
|
56
|
-
/** @type {<T>(list: List<T>) => Iterable<T>} */
|
|
57
|
-
declare const iterable: <T>(list: List<T>) => Iterable<T>;
|
|
58
|
-
/** @type {<T>(list: List<T>) => readonly T[]} */
|
|
59
|
-
declare const toArray: <T>(list: List<T>) => readonly T[];
|
|
60
|
-
/** @type {<T>(list: List<List<T>>) => Thunk<T>} */
|
|
61
|
-
declare const flat: <T>(list: List<List<T>>) => Thunk<T>;
|
|
62
|
-
/** @type {<I, O>(f: (value: I) => O) => (input: List<I>) => Thunk<O>} */
|
|
63
|
-
declare const map: <I, O>(f: (value: I) => O) => (input: List<I>) => Thunk<O>;
|
|
64
|
-
/** @type {<I, O>(f: (value: I) => List<O>) => (input: List<I>) => Thunk<O>} */
|
|
65
|
-
declare const flatMap: <I, O>(f: (value: I) => List<O>) => (input: List<I>) => Thunk<O>;
|
|
66
|
-
/** @type {<T>(f: (value: T) => boolean) => (input: List<T>) => Thunk<T>} */
|
|
67
|
-
declare const filter: <T>(f: (value: T) => boolean) => (input: List<T>) => Thunk<T>;
|
|
68
|
-
/** @type {<I, O>(f: (value: I) => O|null) => (input: List<I>) => Thunk<O>} */
|
|
69
|
-
declare const filterMap: <I, O>(f: (value: I) => O | null) => (input: List<I>) => Thunk<O>;
|
|
70
|
-
/** @type {<T>(f: (value: T) => boolean) => (input: List<T>) => Thunk<T>} */
|
|
71
|
-
declare const takeWhile: <T>(f: (value: T) => boolean) => (input: List<T>) => Thunk<T>;
|
|
72
|
-
/** @type {(n: number) => <T>(input: List<T>) => Thunk<T>} */
|
|
73
|
-
declare const take: (n: number) => <T>(input: List<T>) => Thunk<T>;
|
|
74
|
-
/** @type {<T>(f: (value: T) => boolean) => (input: List<T>) => Thunk<T>} */
|
|
75
|
-
declare const dropWhile: <T>(f: (value: T) => boolean) => (input: List<T>) => Thunk<T>;
|
|
76
|
-
/** @type {(n: number) => <T>(input: List<T>) => Thunk<T>} */
|
|
77
|
-
declare const drop: (n: number) => <T>(input: List<T>) => Thunk<T>;
|
|
78
|
-
/** @type {<D>(def: D) => <T>(input: List<T>) => D|T} */
|
|
79
|
-
declare const first: <D>(def: D) => <T>(input: List<T>) => D | T;
|
|
80
|
-
/** @type {<D>(first: D) => <T>(tail: List<T>) => D|T} */
|
|
81
|
-
declare const last: <D>(first: D) => <T>(tail: List<T>) => D | T;
|
|
82
|
-
/** @type {<D>(def: D) => <T>(f: (value: T) => boolean) => (input: List<T>) => D|T} */
|
|
83
|
-
declare const find: <D>(def: D) => <T>(f: (value: T) => boolean) => (input: List<T>) => D | T;
|
|
84
|
-
/** @type {(input: List<boolean>) => boolean} */
|
|
85
|
-
declare const some: (input: List<boolean>) => boolean;
|
|
86
|
-
declare const every: import("../function/module.f.mjs").Func<List<boolean>, boolean>;
|
|
87
|
-
/** @type {<T>(input: List<T>) => boolean} */
|
|
88
|
-
declare const isEmpty: <T>(input: List<T>) => boolean;
|
|
89
|
-
/** @type {<T>(value: T) => (sequence: List<T>) => boolean} */
|
|
90
|
-
declare const includes: <T>(value: T) => (sequence: List<T>) => boolean;
|
|
91
|
-
/** @type {(count: number) => Thunk<number>} */
|
|
92
|
-
declare const countdown: (count: number) => Thunk<number>;
|
|
93
|
-
/** @type {<T>(v: T) => (c: number) => Thunk<T>} */
|
|
94
|
-
declare const repeat: <T>(v: T) => (c: number) => Thunk<T>;
|
|
95
|
-
/** @type {<T>(list: List<T>) => List<T>} */
|
|
96
|
-
declare const cycle: <T>(list: List<T>) => List<T>;
|
|
97
|
-
/** @type {<I, O>(op: Operator.Scan<I, O>) => (input: List<I>) => Thunk<O>} */
|
|
98
|
-
declare const scan: <I, O>(op: Operator.Scan<I, O>) => (input: List<I>) => Thunk<O>;
|
|
99
|
-
/** @type {<I, S, O>(op: Operator.StateScan<I, S, O>) => (init: S) => (input: List<I>) => Thunk<O>} */
|
|
100
|
-
declare const stateScan: <I, S, O>(op: Operator.StateScan<I, S, O>) => (init: S) => (input: List<I>) => Thunk<O>;
|
|
101
|
-
/** @type {<I,O>(op: Operator.Fold<I, O>) => (init: O) => (input: List<I>) => Thunk<O>} */
|
|
102
|
-
declare const foldScan: <I, O>(op: Operator.Fold<I, O>) => (init: O) => (input: List<I>) => Thunk<O>;
|
|
103
|
-
/** @type {<I,O>(op: Operator.Fold<I, O>) => (init: O) => (input: List<I>) => O} */
|
|
104
|
-
declare const fold: <I, O>(op: Operator.Fold<I, O>) => (init: O) => (input: List<I>) => O;
|
|
105
|
-
/** @type {<T>(op: Operator.Reduce<T>) => <D>(def: D) => (input: List<T>) => D|T} */
|
|
106
|
-
declare const reduce: <T>(op: Operator.Reduce<T>) => <D>(def: D) => (input: List<T>) => D | T;
|
|
107
|
-
/** @type {<T>(input: List<T>) => number} */
|
|
108
|
-
declare const length: <T>(input: List<T>) => number;
|
|
109
|
-
/** @type {<T>(input: List<T>) => Thunk<Entry<T>>} */
|
|
110
|
-
declare const entries: <T>(input: List<T>) => Thunk<Entry<T>>;
|
|
111
|
-
/** @type {<T>(input: List<T>) => List<T>} */
|
|
112
|
-
declare const reverse: <T>(input: List<T>) => List<T>;
|
|
113
|
-
/** @type {<A>(a: List<A>) => <B>(b: List<B>) => Thunk<readonly[A, B]>} */
|
|
114
|
-
declare const zip: <A>(a: List<A>) => <B>(b: List<B>) => Thunk<readonly [A, B]>;
|
|
115
|
-
/** @type {<T>(e: Operator.Equal<T>) => (a: List<T>) => (b: List<T>) => boolean} */
|
|
116
|
-
declare const equal: <T>(e: Operator.Equal<T>) => (a: List<T>) => (b: List<T>) => boolean;
|
|
117
|
-
import * as Operator from '../function/operator/module.f.mjs';
|
package/types/map/module.f.d.mts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let empty: null;
|
|
3
|
-
export { at };
|
|
4
|
-
export { setReduce };
|
|
5
|
-
export { setReplace };
|
|
6
|
-
export { entries };
|
|
7
|
-
export { fromEntries };
|
|
8
|
-
export { remove };
|
|
9
|
-
}
|
|
10
|
-
export default _default;
|
|
11
|
-
export type Sign = Compare.Sign;
|
|
12
|
-
export type Cmp<T> = Compare.Compare<T>;
|
|
13
|
-
export type Entry<T> = readonly [string, T];
|
|
14
|
-
export type Map<T> = BtreeTypes.Tree<Entry<T>>;
|
|
15
|
-
/** @type {(name: string) => <T>(map: Map<T>) => T|null} */
|
|
16
|
-
declare const at: (name: string) => <T>(map: Map<T>) => T | null;
|
|
17
|
-
/** @type {<T>(reduce: Operator.Reduce<T>) => (name: string) => (value: T) => (map: Map<T>) => Map<T>} */
|
|
18
|
-
declare const setReduce: <T>(reduce: Operator.Reduce<T>) => (name: string) => (value: T) => (map: Map<T>) => Map<T>;
|
|
19
|
-
/** @type {(name: string) => <T>(value: T) => (map: Map<T>) => Map<T>} */
|
|
20
|
-
declare const setReplace: (name: string) => <T>(value: T) => (map: Map<T>) => Map<T>;
|
|
21
|
-
/** @type {<T>(map: Map<T>) => List.List<Entry<T>>} */
|
|
22
|
-
declare const entries: <T>(map: Map<T>) => List.List<Entry<T>>;
|
|
23
|
-
/** @type {<T>(entries: List.List<Entry<T>>) => Map<T>} */
|
|
24
|
-
declare const fromEntries: <T>(entries: List.List<Entry<T>>) => Map<T>;
|
|
25
|
-
/** @type {(name: string) => <T>(map: Map<T>) => Map<T>} */
|
|
26
|
-
declare const remove: (name: string) => <T>(map: Map<T>) => Map<T>;
|
|
27
|
-
import * as Compare from '../function/compare/module.f.mjs';
|
|
28
|
-
import * as BtreeTypes from '../btree/types/module.f.mjs';
|
|
29
|
-
import * as Operator from '../function/operator/module.f.mjs';
|
|
30
|
-
import * as List from '../list/module.f.mjs';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { empty };
|
|
3
|
-
export { universe };
|
|
4
|
-
export { has };
|
|
5
|
-
export { complement };
|
|
6
|
-
export { set };
|
|
7
|
-
export { unset };
|
|
8
|
-
export { setRange };
|
|
9
|
-
}
|
|
10
|
-
export default _default;
|
|
11
|
-
export type NibbleSet = number;
|
|
12
|
-
export type Nibble = number;
|
|
13
|
-
/** @typedef {number} NibbleSet */
|
|
14
|
-
/** @typedef {number} Nibble */
|
|
15
|
-
declare const empty: 0;
|
|
16
|
-
declare const universe: 65535;
|
|
17
|
-
/** @type {(n: Nibble) => (s: NibbleSet) => boolean} */
|
|
18
|
-
declare const has: (n: Nibble) => (s: NibbleSet) => boolean;
|
|
19
|
-
/** @type {(n: NibbleSet) => NibbleSet} */
|
|
20
|
-
declare const complement: (n: NibbleSet) => NibbleSet;
|
|
21
|
-
/** @type {(n: Nibble) => (s: NibbleSet) => NibbleSet} */
|
|
22
|
-
declare const set: (n: Nibble) => (s: NibbleSet) => NibbleSet;
|
|
23
|
-
/** @type {(n: Nibble) => (s: NibbleSet) => NibbleSet} */
|
|
24
|
-
declare const unset: (n: Nibble) => (s: NibbleSet) => NibbleSet;
|
|
25
|
-
/** @type {(r: readonly[number, number]) => (s: NibbleSet) => NibbleSet} */
|
|
26
|
-
declare const setRange: (r: readonly [number, number]) => (s: NibbleSet) => NibbleSet;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { map };
|
|
3
|
-
export { match };
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export type Nullable<T> = T | null;
|
|
7
|
-
/**
|
|
8
|
-
* @template T
|
|
9
|
-
* @typedef {T|null} Nullable
|
|
10
|
-
*/
|
|
11
|
-
/** @type {<T, R>(f: (value: T) => R) => (value: Nullable<T>) => Nullable<R>} */
|
|
12
|
-
declare const map: <T, R>(f: (value: T) => R) => (value: Nullable<T>) => Nullable<R>;
|
|
13
|
-
/** @type {<T, R>(f: (_: T) => R) => (none: () => R) => (_: Nullable<T>) => Nullable<R>} */
|
|
14
|
-
declare const match: <T, R>(f: (_: T) => R) => (none: () => R) => (_: Nullable<T>) => Nullable<R>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { sum };
|
|
3
|
-
export { min };
|
|
4
|
-
export { max };
|
|
5
|
-
export { cmp };
|
|
6
|
-
}
|
|
7
|
-
export default _default;
|
|
8
|
-
declare const sum: (input: import("../list/module.f.mjs").List<number>) => number;
|
|
9
|
-
declare const min: (input: import("../list/module.f.mjs").List<number>) => number | null;
|
|
10
|
-
declare const max: (input: import("../list/module.f.mjs").List<number>) => number | null;
|
|
11
|
-
/** @type {(a: number) => (b: number) => Compare.Sign} */
|
|
12
|
-
declare const cmp: (a: number) => (b: number) => Compare.Sign;
|
|
13
|
-
import * as Compare from '../function/compare/module.f.mjs';
|