typenative 0.6.2 → 0.7.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/README.md +1 -1
- package/bin/cli.js +18 -8
- package/bin/go/overrides.js +21 -1
- package/bin/index.js +48 -25
- package/bin/main.js +2 -1
- package/bin/node/assert.js +56 -17
- package/bin/node/async_hooks.js +69 -10
- package/bin/node/buffer.js +321 -7
- package/bin/node/child_process.js +220 -16
- package/bin/node/cluster.js +436 -32
- package/bin/node/crypto.js +814 -5
- package/bin/node/crypto_curves.js +142 -0
- package/bin/node/crypto_keys.js +1147 -48
- package/bin/node/crypto_pem.js +313 -0
- package/bin/node/crypto_pkcs12.js +17 -0
- package/bin/node/dgram.js +161 -10
- package/bin/node/diagnostics_channel.js +5 -1
- package/bin/node/events.js +358 -8
- package/bin/node/ffi.js +933 -0
- package/bin/node/fs.js +1346 -10
- package/bin/node/histogram.js +1991 -0
- package/bin/node/http.js +630 -55
- package/bin/node/http2.js +1141 -88
- package/bin/node/intl.js +4576 -0
- package/bin/node/intl_data.js +65412 -0
- package/bin/node/module_v8.js +155 -16
- package/bin/node/net.js +59 -10
- package/bin/node/path.js +5 -1
- package/bin/node/process.js +355 -4
- package/bin/node/readline.js +558 -8
- package/bin/node/registry.js +2 -0
- package/bin/node/sqlite.js +1539 -7
- package/bin/node/stream.js +371 -32
- package/bin/node/stream_web.js +422 -15
- package/bin/node/system_extra.js +40 -154
- package/bin/node/temporal.js +96 -0
- package/bin/node/temporal_runtime.js +5075 -0
- package/bin/node/temporal_zones.js +460 -0
- package/bin/node/test.js +191 -8
- package/bin/node/test_coverage.js +58 -0
- package/bin/node/test_report.js +50 -4
- package/bin/node/test_run.js +64 -3
- package/bin/node/timers.js +123 -0
- package/bin/node/tls.js +346 -12
- package/bin/node/tls_roots.js +122 -0
- package/bin/node/typed_arrays.js +867 -93
- package/bin/node/url.js +657 -0
- package/bin/node/util.js +449 -7
- package/bin/node/util_extra.js +6 -0
- package/bin/node/wasi.js +214 -0
- package/bin/node/webassembly.js +1137 -0
- package/bin/node/websocket.js +763 -0
- package/bin/node/webview.js +3257 -244
- package/bin/node/worker_threads.js +434 -52
- package/bin/node/zlib.js +455 -22
- package/bin/node/zlib_iter.js +585 -0
- package/bin/node/zlib_zip.js +2392 -0
- package/bin/transpiler.js +3417 -501
- package/bin/typecheck-node.js +49 -17
- package/bin/version.js +1 -1
- package/govendor/github.com/cloudflare/circl/.golangci.yaml +64 -0
- package/govendor/github.com/cloudflare/circl/.semgrepignore +1 -0
- package/govendor/github.com/cloudflare/circl/AGENTS.md +91 -0
- package/govendor/github.com/cloudflare/circl/CITATION.cff +30 -0
- package/govendor/github.com/cloudflare/circl/LICENSE +57 -0
- package/govendor/github.com/cloudflare/circl/Makefile +70 -0
- package/govendor/github.com/cloudflare/circl/README.md +206 -0
- package/govendor/github.com/cloudflare/circl/REVIEW.md +83 -0
- package/govendor/github.com/cloudflare/circl/codecov.yml +21 -0
- package/govendor/github.com/cloudflare/circl/dh/x448/curve.go +104 -0
- package/govendor/github.com/cloudflare/circl/dh/x448/curve_amd64.go +30 -0
- package/govendor/github.com/cloudflare/circl/dh/x448/curve_amd64.h +111 -0
- package/govendor/github.com/cloudflare/circl/dh/x448/curve_amd64.s +194 -0
- package/govendor/github.com/cloudflare/circl/dh/x448/curve_generic.go +100 -0
- package/govendor/github.com/cloudflare/circl/dh/x448/curve_noasm.go +11 -0
- package/govendor/github.com/cloudflare/circl/dh/x448/doc.go +19 -0
- package/govendor/github.com/cloudflare/circl/dh/x448/key.go +46 -0
- package/govendor/github.com/cloudflare/circl/dh/x448/table.go +460 -0
- package/govendor/github.com/cloudflare/circl/doc.go +8 -0
- package/govendor/github.com/cloudflare/circl/ecc/goldilocks/constants.go +71 -0
- package/govendor/github.com/cloudflare/circl/ecc/goldilocks/curve.go +90 -0
- package/govendor/github.com/cloudflare/circl/ecc/goldilocks/isogeny.go +52 -0
- package/govendor/github.com/cloudflare/circl/ecc/goldilocks/point.go +181 -0
- package/govendor/github.com/cloudflare/circl/ecc/goldilocks/scalar.go +203 -0
- package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twist.go +138 -0
- package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twistPoint.go +135 -0
- package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twistTables.go +216 -0
- package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twist_basemult.go +62 -0
- package/govendor/github.com/cloudflare/circl/go.mod +3 -0
- package/govendor/github.com/cloudflare/circl/internal/conv/conv.go +173 -0
- package/govendor/github.com/cloudflare/circl/internal/sha3/doc.go +62 -0
- package/govendor/github.com/cloudflare/circl/internal/sha3/hashes.go +69 -0
- package/govendor/github.com/cloudflare/circl/internal/sha3/keccakf.go +391 -0
- package/govendor/github.com/cloudflare/circl/internal/sha3/rc.go +29 -0
- package/govendor/github.com/cloudflare/circl/internal/sha3/sha3.go +200 -0
- package/govendor/github.com/cloudflare/circl/internal/sha3/sha3_s390x.s +33 -0
- package/govendor/github.com/cloudflare/circl/internal/sha3/shake.go +119 -0
- package/govendor/github.com/cloudflare/circl/internal/sha3/xor.go +15 -0
- package/govendor/github.com/cloudflare/circl/internal/sha3/xor_generic.go +33 -0
- package/govendor/github.com/cloudflare/circl/internal/sha3/xor_unaligned.go +61 -0
- package/govendor/github.com/cloudflare/circl/math/fp448/fp.go +164 -0
- package/govendor/github.com/cloudflare/circl/math/fp448/fp_amd64.go +43 -0
- package/govendor/github.com/cloudflare/circl/math/fp448/fp_amd64.h +591 -0
- package/govendor/github.com/cloudflare/circl/math/fp448/fp_amd64.s +75 -0
- package/govendor/github.com/cloudflare/circl/math/fp448/fp_generic.go +339 -0
- package/govendor/github.com/cloudflare/circl/math/fp448/fp_noasm.go +12 -0
- package/govendor/github.com/cloudflare/circl/math/fp448/fuzzer.go +75 -0
- package/govendor/github.com/cloudflare/circl/math/integer.go +16 -0
- package/govendor/github.com/cloudflare/circl/math/mlsbset/mlsbset.go +145 -0
- package/govendor/github.com/cloudflare/circl/math/mlsbset/power.go +64 -0
- package/govendor/github.com/cloudflare/circl/math/primes.go +34 -0
- package/govendor/github.com/cloudflare/circl/math/wnaf.go +84 -0
- package/govendor/github.com/cloudflare/circl/sign/ed448/ed448.go +417 -0
- package/govendor/github.com/cloudflare/circl/sign/ed448/signapi.go +89 -0
- package/govendor/github.com/cloudflare/circl/sign/sign.go +119 -0
- package/{examples/react-compiler/vendor/picocolors → govendor/github.com/decred/dcrd/dcrec/secp256k1/v4}/LICENSE +4 -2
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/README.md +72 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/compressedbytepoints.go +18 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/curve.go +1310 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/curve_embedded.go +14 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/curve_precompute.go +14 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/doc.go +59 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdh.go +21 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/README.md +52 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/doc.go +42 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/error.go +134 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/signature.go +1001 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ellipticadaptor.go +296 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/error.go +67 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/field.go +1696 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/go.mod +3 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/loadprecomputed.go +91 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/modnscalar.go +1105 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/nonce.go +263 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/privkey.go +111 -0
- package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/pubkey.go +236 -0
- package/govendor/github.com/ebitengine/purego/LICENSE +201 -0
- package/govendor/github.com/ebitengine/purego/README.md +124 -0
- package/govendor/github.com/ebitengine/purego/abi_amd64.h +99 -0
- package/govendor/github.com/ebitengine/purego/abi_arm64.h +39 -0
- package/govendor/github.com/ebitengine/purego/abi_loong64.h +60 -0
- package/govendor/github.com/ebitengine/purego/cdecl.go +11 -0
- package/govendor/github.com/ebitengine/purego/cgo.go +19 -0
- package/govendor/github.com/ebitengine/purego/dlerror.go +17 -0
- package/govendor/github.com/ebitengine/purego/dlfcn.go +99 -0
- package/govendor/github.com/ebitengine/purego/dlfcn_android.go +34 -0
- package/govendor/github.com/ebitengine/purego/dlfcn_darwin.go +20 -0
- package/govendor/github.com/ebitengine/purego/dlfcn_freebsd.go +14 -0
- package/govendor/github.com/ebitengine/purego/dlfcn_linux.go +16 -0
- package/govendor/github.com/ebitengine/purego/dlfcn_netbsd.go +15 -0
- package/govendor/github.com/ebitengine/purego/dlfcn_nocgo_freebsd.go +11 -0
- package/govendor/github.com/ebitengine/purego/dlfcn_nocgo_linux.go +19 -0
- package/govendor/github.com/ebitengine/purego/dlfcn_nocgo_netbsd.go +11 -0
- package/govendor/github.com/ebitengine/purego/dlfcn_playground.go +24 -0
- package/govendor/github.com/ebitengine/purego/dlfcn_stubs.s +22 -0
- package/govendor/github.com/ebitengine/purego/func.go +780 -0
- package/govendor/github.com/ebitengine/purego/gen.go +6 -0
- package/govendor/github.com/ebitengine/purego/go.mod +3 -0
- package/govendor/github.com/ebitengine/purego/go_runtime.go +19 -0
- package/govendor/github.com/ebitengine/purego/internal/cgo/dlfcn_cgo_unix.go +56 -0
- package/govendor/github.com/ebitengine/purego/internal/cgo/empty.go +6 -0
- package/govendor/github.com/ebitengine/purego/internal/cgo/syscall_cgo_unix.go +49 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_amd64.h +99 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_arm64.h +39 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_loong64.h +60 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_ppc64x.h +195 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_riscv64.h +72 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_386.s +29 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_amd64.s +39 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_arm.s +58 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_arm64.s +35 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_loong64.s +38 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_ppc64le.s +79 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_riscv64.s +36 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_s390x.s +52 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/callbacks.go +93 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/doc.go +32 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/fakecgo.go +14 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/freebsd.go +27 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_darwin.go +86 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_freebsd.go +77 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +72 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_linux.go +77 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_netbsd.go +83 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_setenv.go +18 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_util.go +38 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/iscgo.go +19 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo.go +37 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_darwin.go +37 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_freebsd.go +27 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_linux.go +27 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_netbsd.go +36 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/linux.go +189 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/netbsd.go +23 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/setenv.go +19 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/threadentry_amd64.go +15 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/threadentry_noasm.go +24 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_386.s +130 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_amd64.s +124 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_arm.s +131 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_arm64.s +81 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_386.s +78 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_amd64.s +69 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_arm.s +69 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_arm64.s +60 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_loong64.s +60 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_ppc64le.s +69 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_riscv64.s +60 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_s390x.s +51 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_loong64.s +78 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_ppc64le.s +132 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_riscv64.s +76 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_s390x.s +158 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols.go +165 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_darwin.go +59 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_freebsd.go +48 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_linux.go +158 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_netbsd.go +59 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_darwin.s +19 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_freebsd.s +16 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_linux.s +46 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_netbsd.s +19 -0
- package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_stubs.s +55 -0
- package/govendor/github.com/ebitengine/purego/internal/strings/strings.go +40 -0
- package/govendor/github.com/ebitengine/purego/is_ios.go +13 -0
- package/govendor/github.com/ebitengine/purego/nocgo.go +25 -0
- package/govendor/github.com/ebitengine/purego/struct_amd64.go +518 -0
- package/govendor/github.com/ebitengine/purego/struct_arm.go +100 -0
- package/govendor/github.com/ebitengine/purego/struct_arm64.go +757 -0
- package/govendor/github.com/ebitengine/purego/struct_loong64.go +244 -0
- package/govendor/github.com/ebitengine/purego/struct_other.go +54 -0
- package/govendor/github.com/ebitengine/purego/struct_ppc64le.go +180 -0
- package/govendor/github.com/ebitengine/purego/struct_riscv64.go +158 -0
- package/govendor/github.com/ebitengine/purego/struct_s390x.go +158 -0
- package/govendor/github.com/ebitengine/purego/sys_386.s +153 -0
- package/govendor/github.com/ebitengine/purego/sys_amd64.s +206 -0
- package/govendor/github.com/ebitengine/purego/sys_arm.s +153 -0
- package/govendor/github.com/ebitengine/purego/sys_arm64.s +133 -0
- package/govendor/github.com/ebitengine/purego/sys_loong64.s +131 -0
- package/govendor/github.com/ebitengine/purego/sys_ppc64le.s +126 -0
- package/govendor/github.com/ebitengine/purego/sys_riscv64.s +135 -0
- package/govendor/github.com/ebitengine/purego/sys_s390x.s +148 -0
- package/govendor/github.com/ebitengine/purego/sys_unix_386.s +234 -0
- package/govendor/github.com/ebitengine/purego/sys_unix_arm.s +99 -0
- package/govendor/github.com/ebitengine/purego/sys_unix_arm64.s +75 -0
- package/govendor/github.com/ebitengine/purego/sys_unix_loong64.s +79 -0
- package/govendor/github.com/ebitengine/purego/sys_unix_ppc64le.s +114 -0
- package/govendor/github.com/ebitengine/purego/sys_unix_riscv64.s +79 -0
- package/govendor/github.com/ebitengine/purego/sys_unix_s390x.s +111 -0
- package/govendor/github.com/ebitengine/purego/syscall.go +95 -0
- package/govendor/github.com/ebitengine/purego/syscall_32bit.go +97 -0
- package/govendor/github.com/ebitengine/purego/syscall_cgo_linux.go +20 -0
- package/govendor/github.com/ebitengine/purego/syscall_notstackargs.go +55 -0
- package/govendor/github.com/ebitengine/purego/syscall_ppc64le.go +73 -0
- package/govendor/github.com/ebitengine/purego/syscall_stackargs_ppc64le.go +38 -0
- package/govendor/github.com/ebitengine/purego/syscall_stackargs_s390x.go +38 -0
- package/govendor/github.com/ebitengine/purego/syscall_unix.go +392 -0
- package/govendor/github.com/ebitengine/purego/syscall_windows.go +54 -0
- package/govendor/github.com/ebitengine/purego/zcallback_386.s +4014 -0
- package/govendor/github.com/ebitengine/purego/zcallback_amd64.s +2014 -0
- package/govendor/github.com/ebitengine/purego/zcallback_arm.s +4014 -0
- package/govendor/github.com/ebitengine/purego/zcallback_arm64.s +4014 -0
- package/govendor/github.com/ebitengine/purego/zcallback_loong64.s +4014 -0
- package/govendor/github.com/ebitengine/purego/zcallback_ppc64le.s +4014 -0
- package/govendor/github.com/ebitengine/purego/zcallback_riscv64.s +4051 -0
- package/govendor/github.com/ebitengine/purego/zcallback_s390x.s +4015 -0
- package/govendor/github.com/klauspost/compress/.gitattributes +3 -0
- package/govendor/github.com/klauspost/compress/.goreleaser.yml +132 -0
- package/govendor/github.com/klauspost/compress/AGENTS.md +106 -0
- package/govendor/github.com/klauspost/compress/LICENSE +304 -0
- package/govendor/github.com/klauspost/compress/README.md +766 -0
- package/govendor/github.com/klauspost/compress/SECURITY.md +25 -0
- package/govendor/github.com/klauspost/compress/compressible.go +85 -0
- package/govendor/github.com/klauspost/compress/fse/README.md +79 -0
- package/govendor/github.com/klauspost/compress/fse/bitreader.go +122 -0
- package/govendor/github.com/klauspost/compress/fse/bitwriter.go +167 -0
- package/govendor/github.com/klauspost/compress/fse/bytereader.go +47 -0
- package/govendor/github.com/klauspost/compress/fse/compress.go +685 -0
- package/govendor/github.com/klauspost/compress/fse/decompress.go +383 -0
- package/govendor/github.com/klauspost/compress/fse/fse.go +150 -0
- package/govendor/github.com/klauspost/compress/gen.sh +4 -0
- package/govendor/github.com/klauspost/compress/go.mod +3 -0
- package/govendor/github.com/klauspost/compress/huff0/README.md +89 -0
- package/govendor/github.com/klauspost/compress/huff0/bitreader.go +323 -0
- package/govendor/github.com/klauspost/compress/huff0/bitwriter.go +97 -0
- package/govendor/github.com/klauspost/compress/huff0/build_table.go +168 -0
- package/govendor/github.com/klauspost/compress/huff0/compress.go +747 -0
- package/govendor/github.com/klauspost/compress/huff0/decompress.go +1188 -0
- package/govendor/github.com/klauspost/compress/huff0/decompress_amd64.go +128 -0
- package/govendor/github.com/klauspost/compress/huff0/decompress_amd64.s +3476 -0
- package/govendor/github.com/klauspost/compress/huff0/decompress_arm64.go +72 -0
- package/govendor/github.com/klauspost/compress/huff0/decompress_arm64.s +1648 -0
- package/govendor/github.com/klauspost/compress/huff0/decompress_asm.go +252 -0
- package/govendor/github.com/klauspost/compress/huff0/decompress_generic.go +278 -0
- package/govendor/github.com/klauspost/compress/huff0/huff0.go +337 -0
- package/govendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo.go +34 -0
- package/govendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo_amd64.go +10 -0
- package/govendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo_amd64.s +34 -0
- package/govendor/github.com/klauspost/compress/internal/le/le.go +5 -0
- package/govendor/github.com/klauspost/compress/internal/le/unsafe_disabled.go +42 -0
- package/govendor/github.com/klauspost/compress/internal/le/unsafe_enabled.go +52 -0
- package/govendor/github.com/klauspost/compress/internal/regmask/regmask.go +50 -0
- package/govendor/github.com/klauspost/compress/internal/regmask/regmask_386.go +39 -0
- package/govendor/github.com/klauspost/compress/internal/snapref/LICENSE +27 -0
- package/govendor/github.com/klauspost/compress/internal/snapref/decode.go +264 -0
- package/govendor/github.com/klauspost/compress/internal/snapref/decode_other.go +113 -0
- package/govendor/github.com/klauspost/compress/internal/snapref/encode.go +291 -0
- package/govendor/github.com/klauspost/compress/internal/snapref/encode_other.go +250 -0
- package/govendor/github.com/klauspost/compress/internal/snapref/snappy.go +98 -0
- package/govendor/github.com/klauspost/compress/s2sx.mod +3 -0
- package/govendor/github.com/klauspost/compress/s2sx.sum +0 -0
- package/govendor/github.com/klauspost/compress/zstd/README.md +487 -0
- package/govendor/github.com/klauspost/compress/zstd/bitreader.go +176 -0
- package/govendor/github.com/klauspost/compress/zstd/bitwriter.go +151 -0
- package/govendor/github.com/klauspost/compress/zstd/blockdec.go +728 -0
- package/govendor/github.com/klauspost/compress/zstd/blockenc.go +923 -0
- package/govendor/github.com/klauspost/compress/zstd/blocktype_string.go +85 -0
- package/govendor/github.com/klauspost/compress/zstd/bytebuf.go +131 -0
- package/govendor/github.com/klauspost/compress/zstd/bytereader.go +82 -0
- package/govendor/github.com/klauspost/compress/zstd/decodeheader.go +261 -0
- package/govendor/github.com/klauspost/compress/zstd/decoder.go +995 -0
- package/govendor/github.com/klauspost/compress/zstd/decoder_options.go +213 -0
- package/govendor/github.com/klauspost/compress/zstd/dict.go +605 -0
- package/govendor/github.com/klauspost/compress/zstd/enc_base.go +200 -0
- package/govendor/github.com/klauspost/compress/zstd/enc_best.go +572 -0
- package/govendor/github.com/klauspost/compress/zstd/enc_better.go +1262 -0
- package/govendor/github.com/klauspost/compress/zstd/enc_dfast.go +1136 -0
- package/govendor/github.com/klauspost/compress/zstd/enc_fast.go +892 -0
- package/govendor/github.com/klauspost/compress/zstd/enc_jobs.go +352 -0
- package/govendor/github.com/klauspost/compress/zstd/encoder.go +881 -0
- package/govendor/github.com/klauspost/compress/zstd/encoder_options.go +422 -0
- package/govendor/github.com/klauspost/compress/zstd/framedec.go +404 -0
- package/govendor/github.com/klauspost/compress/zstd/frameenc.go +137 -0
- package/govendor/github.com/klauspost/compress/zstd/fse_decoder.go +333 -0
- package/govendor/github.com/klauspost/compress/zstd/fse_decoder_amd64.s +132 -0
- package/govendor/github.com/klauspost/compress/zstd/fse_decoder_arm64.s +148 -0
- package/govendor/github.com/klauspost/compress/zstd/fse_decoder_asm.go +70 -0
- package/govendor/github.com/klauspost/compress/zstd/fse_decoder_generic.go +71 -0
- package/govendor/github.com/klauspost/compress/zstd/fse_encoder.go +701 -0
- package/govendor/github.com/klauspost/compress/zstd/fse_predefined.go +168 -0
- package/govendor/github.com/klauspost/compress/zstd/hash.go +57 -0
- package/govendor/github.com/klauspost/compress/zstd/history.go +119 -0
- package/{examples/react-compiler/vendor/jsesc/LICENSE-MIT.txt → govendor/github.com/klauspost/compress/zstd/internal/xxhash/LICENSE.txt} +3 -1
- package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/README.md +71 -0
- package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash.go +242 -0
- package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_amd64.s +210 -0
- package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_arm64.s +184 -0
- package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_asm.go +11 -0
- package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_other.go +75 -0
- package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_safe.go +11 -0
- package/govendor/github.com/klauspost/compress/zstd/matchlen_amd64.go +15 -0
- package/govendor/github.com/klauspost/compress/zstd/matchlen_amd64.s +66 -0
- package/govendor/github.com/klauspost/compress/zstd/matchlen_generic.go +37 -0
- package/govendor/github.com/klauspost/compress/zstd/seqdec.go +620 -0
- package/govendor/github.com/klauspost/compress/zstd/seqdec_amd64.go +115 -0
- package/govendor/github.com/klauspost/compress/zstd/seqdec_amd64.s +4762 -0
- package/govendor/github.com/klauspost/compress/zstd/seqdec_arm64.go +81 -0
- package/govendor/github.com/klauspost/compress/zstd/seqdec_arm64.s +2919 -0
- package/govendor/github.com/klauspost/compress/zstd/seqdec_asm.go +327 -0
- package/govendor/github.com/klauspost/compress/zstd/seqdec_generic.go +258 -0
- package/govendor/github.com/klauspost/compress/zstd/seqenc.go +159 -0
- package/govendor/github.com/klauspost/compress/zstd/simple.go +54 -0
- package/govendor/github.com/klauspost/compress/zstd/snappy.go +447 -0
- package/govendor/github.com/klauspost/compress/zstd/zip.go +141 -0
- package/govendor/github.com/klauspost/compress/zstd/zstd.go +126 -0
- package/govendor/github.com/tetratelabs/wazero/.editorconfig +7 -0
- package/govendor/github.com/tetratelabs/wazero/.gitattributes +2 -0
- package/govendor/github.com/tetratelabs/wazero/.gitmodules +3 -0
- package/govendor/github.com/tetratelabs/wazero/CONTRIBUTING.md +75 -0
- package/govendor/github.com/tetratelabs/wazero/LICENSE +201 -0
- package/govendor/github.com/tetratelabs/wazero/Makefile +385 -0
- package/govendor/github.com/tetratelabs/wazero/NOTICE +2 -0
- package/govendor/github.com/tetratelabs/wazero/RATIONALE.md +1577 -0
- package/govendor/github.com/tetratelabs/wazero/README.md +135 -0
- package/govendor/github.com/tetratelabs/wazero/api/features.go +228 -0
- package/govendor/github.com/tetratelabs/wazero/api/wasm.go +766 -0
- package/govendor/github.com/tetratelabs/wazero/builder.go +367 -0
- package/govendor/github.com/tetratelabs/wazero/cache.go +123 -0
- package/govendor/github.com/tetratelabs/wazero/codecov.yml +9 -0
- package/govendor/github.com/tetratelabs/wazero/config.go +899 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/checkpoint.go +35 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/close.go +63 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/compilationworkers.go +19 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/experimental.go +41 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/features.go +39 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/importresolver.go +19 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/listener.go +324 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/memory.go +52 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/dir.go +92 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/errno.go +98 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/error.go +45 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/file.go +356 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/fs.go +292 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/oflag.go +70 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/poll.go +48 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno.go +106 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno_notwindows.go +13 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno_unsupported.go +7 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno_windows.go +37 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/time.go +10 -0
- package/govendor/github.com/tetratelabs/wazero/experimental/sys/unimplemented.go +160 -0
- package/govendor/github.com/tetratelabs/wazero/fsconfig.go +213 -0
- package/govendor/github.com/tetratelabs/wazero/go.mod +3 -0
- package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/args.go +97 -0
- package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/clock.go +116 -0
- package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/environ.go +100 -0
- package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/fs.go +2015 -0
- package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/poll.go +247 -0
- package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/proc.go +44 -0
- package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/random.go +55 -0
- package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/sched.go +22 -0
- package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/sock.go +188 -0
- package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/wasi.go +314 -0
- package/govendor/github.com/tetratelabs/wazero/internal/descriptor/table.go +149 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/compiler.go +3884 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/format.go +22 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/interpreter.go +4963 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/operations.go +2978 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/signature.go +825 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/abi.go +170 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/backend.go +3 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/compiler.go +402 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/compiler_lower.go +226 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/go_call.go +33 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi.go +186 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_entry_amd64.go +9 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_entry_amd64.s +29 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_entry_preamble.go +248 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_go_call.go +440 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/cond.go +168 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/ext.go +35 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/instr.go +2495 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/instr_encoding.go +1714 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/lower_constant.go +71 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/lower_mem.go +187 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine.go +3782 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine_pro_epi_logue.go +334 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine_regalloc.go +352 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine_vec.go +992 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/operands.go +336 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/reg.go +181 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/stack.go +130 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi.go +376 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_entry_arm64.go +9 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_entry_arm64.s +29 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go +233 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go +430 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/cond.go +215 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/instr.go +2562 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go +2357 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_constant.go +301 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_instr.go +2227 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go +340 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_mem.go +451 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine.go +631 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go +486 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go +351 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go +128 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/reg.go +397 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/unwind_stack.go +84 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/machine.go +119 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/api.go +124 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/reg.go +123 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/regalloc.go +1189 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/regset.go +96 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/vdef.go +19 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/call_engine.go +884 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/engine.go +1008 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/engine_cache.go +347 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/entrypoint_amd64.go +13 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/entrypoint_arm64.go +13 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/entrypoint_other.go +15 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/frontend.go +663 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/lower.go +5045 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/misc.go +10 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/sort_id.go +13 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/hostmodule.go +88 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/isa_amd64.go +30 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/isa_arm64.go +32 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/isa_other.go +29 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/memmove.go +11 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/module_engine.go +403 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/basic_block.go +381 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/basic_block_sort.go +32 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/builder.go +790 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/cmp.go +107 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/funcref.go +12 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/instructions.go +3024 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/pass.go +393 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/pass_blk_layouts.go +334 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/pass_cfg.go +313 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/signature.go +49 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/ssa.go +14 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/type.go +115 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/vs.go +114 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/debug_options.go +189 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/exitcode.go +150 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/offsetdata.go +248 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/perfmap.go +96 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/perfmap_disabled.go +5 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/perfmap_enabled.go +5 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/pool.go +215 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/ptr.go +15 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/queue.go +26 -0
- package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/resetmap.go +11 -0
- package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/checkpoint.go +10 -0
- package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/close.go +5 -0
- package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/compilationworkers.go +6 -0
- package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/expctxkeys.go +2 -0
- package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/importresolver.go +6 -0
- package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/listener.go +7 -0
- package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/memory.go +4 -0
- package/govendor/github.com/tetratelabs/wazero/internal/filecache/compilationcache.go +42 -0
- package/govendor/github.com/tetratelabs/wazero/internal/filecache/file_cache.go +76 -0
- package/govendor/github.com/tetratelabs/wazero/internal/ieee754/ieee754.go +29 -0
- package/govendor/github.com/tetratelabs/wazero/internal/internalapi/internal.go +9 -0
- package/govendor/github.com/tetratelabs/wazero/internal/leb128/leb128.go +285 -0
- package/govendor/github.com/tetratelabs/wazero/internal/moremath/moremath.go +271 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid.go +26 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid_amd64.go +22 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid_arm64.go +13 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid_unsupported.go +5 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/crypto.go +17 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_linux.go +72 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_other.go +19 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_unix.go +14 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_unsupported.go +22 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_windows.go +31 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/path.go +6 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/path_windows.go +17 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/platform.go +71 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/time.go +76 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/time_notwindows.go +11 -0
- package/govendor/github.com/tetratelabs/wazero/internal/platform/time_windows.go +40 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sock/sock.go +89 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sock/sock_supported.go +11 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sock/sock_unsupported.go +10 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sys/fs.go +458 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sys/lazy.go +135 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sys/stdio.go +125 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sys/sys.go +228 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/adapter.go +105 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/datasync_linux.go +12 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/datasync_unsupported.go +14 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/dir.go +24 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/dirfs.go +137 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file.go +576 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file_unix.go +39 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file_unsupported.go +28 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file_windows.go +133 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens.go +29 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_darwin.go +42 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_darwin.s +8 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_linux.go +38 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_unsupported.go +18 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_windows.go +42 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/ino_unix.go +22 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/ino_unsupported.go +17 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/ino_windows.go +28 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/nonblock_unix.go +17 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/nonblock_unsupported.go +13 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/nonblock_windows.go +23 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/oflag.go +38 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_bsd.go +26 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_darwin.go +26 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_supported.go +30 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_unix.go +20 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_unsupported.go +16 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_windows.go +163 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/osfile.go +318 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll.go +17 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_darwin.go +55 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_darwin.s +8 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_linux.go +57 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_unsupported.go +12 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_windows.go +224 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/readfs.go +117 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/rename_unix.go +16 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/rename_unsupported.go +16 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/rename_windows.go +55 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock.go +186 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_supported.go +76 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_unix.go +48 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_unsupported.go +79 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_windows.go +80 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat.go +16 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat_supported.go +40 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat_unsupported.go +40 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat_windows.go +118 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sync.go +13 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sync_windows.go +20 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/syscall6_darwin.go +13 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sysfs.go +6 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/unlink_unix.go +17 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/unlink_unsupported.go +14 -0
- package/govendor/github.com/tetratelabs/wazero/internal/sysfs/unlink_windows.go +25 -0
- package/govendor/github.com/tetratelabs/wazero/internal/u32/u32.go +11 -0
- package/govendor/github.com/tetratelabs/wazero/internal/u64/u64.go +15 -0
- package/govendor/github.com/tetratelabs/wazero/internal/version/version.go +52 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/args.go +6 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/clock.go +16 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/environ.go +6 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/errno.go +314 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/fs.go +164 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/poll.go +15 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/proc.go +6 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/random.go +3 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/rights.go +148 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/sched.go +3 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/sock.go +71 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasip1/wasi.go +26 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/code.go +124 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/const_expr.go +116 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/custom.go +22 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/data.go +79 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/decoder.go +235 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/element.go +250 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/errors.go +11 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/export.go +32 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/function.go +56 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/global.go +50 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/header.go +9 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/import.go +68 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/limits.go +47 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/memory.go +42 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/names.go +151 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/section.go +309 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/table.go +79 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/value.go +97 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/const_expr.go +259 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/counts.go +53 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/engine.go +76 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/exception.go +9 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/func_validation.go +2804 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/function_definition.go +210 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/global.go +55 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/gofunc.go +279 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/host.go +179 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/instruction.go +1962 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/memory.go +475 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/memory_definition.go +128 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/module.go +1359 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/module_instance.go +251 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/module_instance_lookup.go +73 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/store.go +726 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/store_module_list.go +95 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasm/table.go +321 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasmdebug/debug.go +170 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasmdebug/dwarf.go +225 -0
- package/govendor/github.com/tetratelabs/wazero/internal/wasmruntime/errors.go +54 -0
- package/govendor/github.com/tetratelabs/wazero/netlify.toml +15 -0
- package/govendor/github.com/tetratelabs/wazero/runtime.go +399 -0
- package/govendor/github.com/tetratelabs/wazero/sys/clock.go +26 -0
- package/govendor/github.com/tetratelabs/wazero/sys/error.go +83 -0
- package/govendor/github.com/tetratelabs/wazero/sys/stat.go +105 -0
- package/govendor/github.com/tetratelabs/wazero/sys/stat_bsd.go +29 -0
- package/govendor/github.com/tetratelabs/wazero/sys/stat_posix.go +29 -0
- package/govendor/github.com/tetratelabs/wazero/sys/stat_unsupported.go +14 -0
- package/govendor/github.com/tetratelabs/wazero/sys/stat_windows.go +24 -0
- package/govendor/golang.org/x/crypto/LICENSE +27 -0
- package/govendor/golang.org/x/crypto/PATENTS +22 -0
- package/govendor/golang.org/x/crypto/cryptobyte/asn1/asn1.go +46 -0
- package/govendor/golang.org/x/crypto/cryptobyte/asn1.go +825 -0
- package/govendor/golang.org/x/crypto/cryptobyte/builder.go +350 -0
- package/govendor/golang.org/x/crypto/cryptobyte/string.go +183 -0
- package/govendor/golang.org/x/crypto/go.mod +3 -0
- package/govendor/golang.org/x/crypto/pbkdf2/pbkdf2.go +30 -0
- package/govendor/golang.org/x/net/LICENSE +27 -0
- package/govendor/golang.org/x/net/PATENTS +22 -0
- package/govendor/golang.org/x/net/dns/dnsmessage/message.go +2733 -0
- package/govendor/golang.org/x/net/dns/dnsmessage/svcb.go +333 -0
- package/govendor/golang.org/x/net/go.mod +3 -0
- package/govendor/golang.org/x/net/http/httpguts/guts.go +50 -0
- package/govendor/golang.org/x/net/http/httpguts/httplex.go +347 -0
- package/govendor/golang.org/x/net/http2/README.md +19 -0
- package/govendor/golang.org/x/net/http2/ascii.go +65 -0
- package/govendor/golang.org/x/net/http2/ciphers.go +641 -0
- package/govendor/golang.org/x/net/http2/client_conn_pool.go +301 -0
- package/govendor/golang.org/x/net/http2/client_priority_go126.go +20 -0
- package/govendor/golang.org/x/net/http2/client_priority_go127.go +13 -0
- package/govendor/golang.org/x/net/http2/clientconn.go +57 -0
- package/govendor/golang.org/x/net/http2/config.go +171 -0
- package/govendor/golang.org/x/net/http2/config_go125.go +15 -0
- package/govendor/golang.org/x/net/http2/config_go126.go +15 -0
- package/govendor/golang.org/x/net/http2/databuffer.go +146 -0
- package/govendor/golang.org/x/net/http2/errors.go +145 -0
- package/govendor/golang.org/x/net/http2/flow.go +175 -0
- package/govendor/golang.org/x/net/http2/frame.go +1887 -0
- package/govendor/golang.org/x/net/http2/gotrack.go +181 -0
- package/govendor/golang.org/x/net/http2/hpack/encode.go +244 -0
- package/govendor/golang.org/x/net/http2/hpack/hpack.go +522 -0
- package/govendor/golang.org/x/net/http2/hpack/huffman.go +226 -0
- package/govendor/golang.org/x/net/http2/hpack/static_table.go +188 -0
- package/govendor/golang.org/x/net/http2/hpack/tables.go +426 -0
- package/govendor/golang.org/x/net/http2/http2.go +415 -0
- package/govendor/golang.org/x/net/http2/pipe.go +184 -0
- package/govendor/golang.org/x/net/http2/server.go +3239 -0
- package/govendor/golang.org/x/net/http2/server_common.go +268 -0
- package/govendor/golang.org/x/net/http2/server_wrap.go +217 -0
- package/govendor/golang.org/x/net/http2/transport.go +3084 -0
- package/govendor/golang.org/x/net/http2/transport_common.go +516 -0
- package/govendor/golang.org/x/net/http2/transport_wrap.go +583 -0
- package/govendor/golang.org/x/net/http2/unencrypted.go +32 -0
- package/govendor/golang.org/x/net/http2/write.go +381 -0
- package/govendor/golang.org/x/net/http2/writesched.go +253 -0
- package/govendor/golang.org/x/net/http2/writesched_common.go +90 -0
- package/govendor/golang.org/x/net/http2/writesched_priority_rfc7540.go +420 -0
- package/govendor/golang.org/x/net/http2/writesched_priority_rfc9218.go +226 -0
- package/govendor/golang.org/x/net/http2/writesched_random.go +81 -0
- package/govendor/golang.org/x/net/http2/writesched_roundrobin.go +121 -0
- package/govendor/golang.org/x/net/idna/idna.go +884 -0
- package/govendor/golang.org/x/net/idna/punycode.go +220 -0
- package/govendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0
- package/govendor/golang.org/x/net/idna/tables17.0.0.go +5302 -0
- package/govendor/golang.org/x/net/idna/trie.go +51 -0
- package/govendor/golang.org/x/net/idna/trieval.go +119 -0
- package/govendor/golang.org/x/net/internal/httpcommon/README.md +7 -0
- package/govendor/golang.org/x/net/internal/httpcommon/ascii.go +53 -0
- package/govendor/golang.org/x/net/internal/httpcommon/gzip.go +132 -0
- package/govendor/golang.org/x/net/internal/httpcommon/headermap.go +115 -0
- package/govendor/golang.org/x/net/internal/httpcommon/request.go +503 -0
- package/govendor/golang.org/x/net/internal/httpsfv/httpsfv.go +665 -0
- package/govendor/golang.org/x/sys/cpu/asm_aix_ppc64.s +17 -0
- package/govendor/golang.org/x/sys/cpu/asm_darwin_arm64_gc.s +12 -0
- package/govendor/golang.org/x/sys/cpu/asm_darwin_x86_gc.s +17 -0
- package/govendor/golang.org/x/sys/cpu/byteorder.go +66 -0
- package/govendor/golang.org/x/sys/cpu/cpu.go +357 -0
- package/govendor/golang.org/x/sys/cpu/cpu_aix.go +33 -0
- package/govendor/golang.org/x/sys/cpu/cpu_arm.go +73 -0
- package/govendor/golang.org/x/sys/cpu/cpu_arm64.go +191 -0
- package/govendor/golang.org/x/sys/cpu/cpu_arm64.s +35 -0
- package/govendor/golang.org/x/sys/cpu/cpu_darwin_arm64.go +67 -0
- package/govendor/golang.org/x/sys/cpu/cpu_darwin_arm64_other.go +31 -0
- package/govendor/golang.org/x/sys/cpu/cpu_darwin_x86.go +61 -0
- package/govendor/golang.org/x/sys/cpu/cpu_gc_arm64.go +12 -0
- package/govendor/golang.org/x/sys/cpu/cpu_gc_riscv64.go +11 -0
- package/govendor/golang.org/x/sys/cpu/cpu_gc_s390x.go +21 -0
- package/govendor/golang.org/x/sys/cpu/cpu_gc_x86.go +15 -0
- package/govendor/golang.org/x/sys/cpu/cpu_gc_x86.s +26 -0
- package/govendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go +12 -0
- package/govendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go +22 -0
- package/govendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c +37 -0
- package/govendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go +25 -0
- package/govendor/golang.org/x/sys/cpu/cpu_linux.go +15 -0
- package/govendor/golang.org/x/sys/cpu/cpu_linux_arm.go +39 -0
- package/govendor/golang.org/x/sys/cpu/cpu_linux_arm64.go +120 -0
- package/govendor/golang.org/x/sys/cpu/cpu_linux_loong64.go +22 -0
- package/govendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go +22 -0
- package/govendor/golang.org/x/sys/cpu/cpu_linux_noinit.go +9 -0
- package/govendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go +34 -0
- package/govendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go +173 -0
- package/govendor/golang.org/x/sys/cpu/cpu_linux_s390x.go +40 -0
- package/govendor/golang.org/x/sys/cpu/cpu_loong64.go +62 -0
- package/govendor/golang.org/x/sys/cpu/cpu_loong64.s +13 -0
- package/govendor/golang.org/x/sys/cpu/cpu_mips64x.go +15 -0
- package/govendor/golang.org/x/sys/cpu/cpu_mipsx.go +11 -0
- package/govendor/golang.org/x/sys/cpu/cpu_netbsd_amd64.go +47 -0
- package/govendor/golang.org/x/sys/cpu/cpu_netbsd_arm64.go +173 -0
- package/govendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.go +65 -0
- package/govendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s +11 -0
- package/govendor/golang.org/x/sys/cpu/cpu_other_arm.go +9 -0
- package/govendor/golang.org/x/sys/cpu/cpu_other_arm64.go +11 -0
- package/govendor/golang.org/x/sys/cpu/cpu_other_mips64x.go +11 -0
- package/govendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go +12 -0
- package/govendor/golang.org/x/sys/cpu/cpu_other_riscv64.go +11 -0
- package/govendor/golang.org/x/sys/cpu/cpu_other_x86.go +11 -0
- package/govendor/golang.org/x/sys/cpu/cpu_ppc64x.go +16 -0
- package/govendor/golang.org/x/sys/cpu/cpu_riscv64.go +33 -0
- package/govendor/golang.org/x/sys/cpu/cpu_riscv64.s +17 -0
- package/govendor/golang.org/x/sys/cpu/cpu_s390x.go +172 -0
- package/govendor/golang.org/x/sys/cpu/cpu_s390x.s +57 -0
- package/govendor/golang.org/x/sys/cpu/cpu_sparc64.go +12 -0
- package/govendor/golang.org/x/sys/cpu/cpu_wasm.go +17 -0
- package/govendor/golang.org/x/sys/cpu/cpu_windows.go +26 -0
- package/govendor/golang.org/x/sys/cpu/cpu_windows_arm64.go +38 -0
- package/govendor/golang.org/x/sys/cpu/cpu_x86.go +259 -0
- package/govendor/golang.org/x/sys/cpu/cpu_zos.go +10 -0
- package/govendor/golang.org/x/sys/cpu/cpu_zos_s390x.go +25 -0
- package/govendor/golang.org/x/sys/cpu/endian_big.go +10 -0
- package/govendor/golang.org/x/sys/cpu/endian_little.go +10 -0
- package/govendor/golang.org/x/sys/cpu/hwcap_linux.go +71 -0
- package/govendor/golang.org/x/sys/cpu/parse.go +55 -0
- package/govendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go +53 -0
- package/govendor/golang.org/x/sys/cpu/runtime_auxv.go +16 -0
- package/govendor/golang.org/x/sys/cpu/runtime_auxv_go121.go +18 -0
- package/govendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go +26 -0
- package/govendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go +35 -0
- package/govendor/golang.org/x/sys/cpu/syscall_darwin_arm64_gc.go +54 -0
- package/govendor/golang.org/x/sys/cpu/syscall_darwin_x86_gc.go +98 -0
- package/govendor/golang.org/x/sys/cpu/zcpu_windows.go +48 -0
- package/govendor/golang.org/x/sys/unix/asm_linux_ppc64x.s +20 -0
- package/govendor/golang.org/x/sys/unix/asm_linux_sparc64.s +48 -0
- package/govendor/golang.org/x/sys/unix/asm_zos_s390x.s +4 -186
- package/govendor/golang.org/x/sys/unix/bpxsvc_zos.s +9 -9
- package/govendor/golang.org/x/sys/unix/fcntl_darwin.go +2 -2
- package/govendor/golang.org/x/sys/unix/mkerrors.sh +1 -1
- package/govendor/golang.org/x/sys/unix/ptrace_zos.go +537 -0
- package/govendor/golang.org/x/sys/unix/ptrace_zos_singlestep.go +425 -0
- package/govendor/golang.org/x/sys/unix/syscall_darwin.go +1 -0
- package/govendor/golang.org/x/sys/unix/syscall_freebsd.go +9 -0
- package/govendor/golang.org/x/sys/unix/syscall_linux.go +20 -1
- package/govendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +3 -3
- package/govendor/golang.org/x/sys/unix/syscall_netbsd.go +9 -0
- package/govendor/golang.org/x/sys/unix/syscall_unix_gc.go +1 -1
- package/govendor/golang.org/x/sys/unix/syscall_zos_s390x.go +0 -4
- package/govendor/golang.org/x/sys/unix/xattr_bsd.go +12 -12
- package/govendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +6 -0
- package/govendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +6 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux.go +32 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_386.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_arm.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_mips.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +2 -0
- package/govendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +2 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +11 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +11 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +159 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +159 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +159 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go +159 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go +159 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_linux.go +28 -1
- package/govendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +3 -3
- package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +159 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +159 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +159 -0
- package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go +159 -0
- package/govendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go +13 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux.go +65 -36
- package/govendor/golang.org/x/sys/unix/ztypes_linux_386.go +6 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +7 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_arm.go +6 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +7 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +7 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_mips.go +6 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +7 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +7 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +6 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +6 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +7 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +7 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +7 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +7 -0
- package/govendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +10 -5
- package/govendor/golang.org/x/sys/unix/ztypes_zos_s390x.go +78 -0
- package/govendor/golang.org/x/text/.gitattributes +10 -0
- package/govendor/golang.org/x/text/CONTRIBUTING.md +26 -0
- package/govendor/golang.org/x/text/LICENSE +27 -0
- package/govendor/golang.org/x/text/PATENTS +22 -0
- package/govendor/golang.org/x/text/README.md +81 -0
- package/govendor/golang.org/x/text/cases/cases.go +162 -0
- package/govendor/golang.org/x/text/cases/context.go +376 -0
- package/govendor/golang.org/x/text/cases/fold.go +34 -0
- package/govendor/golang.org/x/text/cases/icu.go +61 -0
- package/govendor/golang.org/x/text/cases/info.go +82 -0
- package/govendor/golang.org/x/text/cases/map.go +816 -0
- package/govendor/golang.org/x/text/cases/tables15.0.0.go +2527 -0
- package/govendor/golang.org/x/text/cases/tables17.0.0.go +2642 -0
- package/govendor/golang.org/x/text/cases/trieval.go +217 -0
- package/govendor/golang.org/x/text/codereview.cfg +1 -0
- package/govendor/golang.org/x/text/collate/collate.go +402 -0
- package/govendor/golang.org/x/text/collate/index.go +32 -0
- package/govendor/golang.org/x/text/collate/option.go +239 -0
- package/govendor/golang.org/x/text/collate/sort.go +81 -0
- package/govendor/golang.org/x/text/collate/tables.go +73789 -0
- package/govendor/golang.org/x/text/currency/common.go +67 -0
- package/govendor/golang.org/x/text/currency/currency.go +185 -0
- package/govendor/golang.org/x/text/currency/format.go +220 -0
- package/govendor/golang.org/x/text/currency/query.go +152 -0
- package/govendor/golang.org/x/text/currency/tables.go +2629 -0
- package/govendor/golang.org/x/text/doc.go +16 -0
- package/govendor/golang.org/x/text/feature/plural/common.go +70 -0
- package/govendor/golang.org/x/text/feature/plural/message.go +244 -0
- package/govendor/golang.org/x/text/feature/plural/plural.go +262 -0
- package/govendor/golang.org/x/text/feature/plural/tables.go +552 -0
- package/govendor/golang.org/x/text/go.mod +3 -0
- package/govendor/golang.org/x/text/internal/catmsg/catmsg.go +417 -0
- package/govendor/golang.org/x/text/internal/catmsg/codec.go +407 -0
- package/govendor/golang.org/x/text/internal/catmsg/varint.go +62 -0
- package/govendor/golang.org/x/text/internal/colltab/collelem.go +374 -0
- package/govendor/golang.org/x/text/internal/colltab/colltab.go +105 -0
- package/govendor/golang.org/x/text/internal/colltab/contract.go +145 -0
- package/govendor/golang.org/x/text/internal/colltab/iter.go +178 -0
- package/govendor/golang.org/x/text/internal/colltab/numeric.go +236 -0
- package/govendor/golang.org/x/text/internal/colltab/table.go +275 -0
- package/govendor/golang.org/x/text/internal/colltab/trie.go +159 -0
- package/govendor/golang.org/x/text/internal/colltab/weighter.go +31 -0
- package/govendor/golang.org/x/text/internal/format/format.go +41 -0
- package/govendor/golang.org/x/text/internal/format/parser.go +358 -0
- package/govendor/golang.org/x/text/internal/internal.go +49 -0
- package/govendor/golang.org/x/text/internal/language/common.go +16 -0
- package/govendor/golang.org/x/text/internal/language/compact/compact.go +61 -0
- package/govendor/golang.org/x/text/internal/language/compact/language.go +260 -0
- package/govendor/golang.org/x/text/internal/language/compact/parents.go +120 -0
- package/govendor/golang.org/x/text/internal/language/compact/tables.go +1015 -0
- package/govendor/golang.org/x/text/internal/language/compact/tags.go +91 -0
- package/govendor/golang.org/x/text/internal/language/compact.go +29 -0
- package/govendor/golang.org/x/text/internal/language/compose.go +167 -0
- package/govendor/golang.org/x/text/internal/language/coverage.go +28 -0
- package/govendor/golang.org/x/text/internal/language/language.go +627 -0
- package/govendor/golang.org/x/text/internal/language/lookup.go +412 -0
- package/govendor/golang.org/x/text/internal/language/match.go +226 -0
- package/govendor/golang.org/x/text/internal/language/parse.go +608 -0
- package/govendor/golang.org/x/text/internal/language/tables.go +3494 -0
- package/govendor/golang.org/x/text/internal/language/tags.go +48 -0
- package/govendor/golang.org/x/text/internal/match.go +67 -0
- package/govendor/golang.org/x/text/internal/number/common.go +55 -0
- package/govendor/golang.org/x/text/internal/number/decimal.go +500 -0
- package/govendor/golang.org/x/text/internal/number/format.go +533 -0
- package/govendor/golang.org/x/text/internal/number/number.go +152 -0
- package/govendor/golang.org/x/text/internal/number/pattern.go +485 -0
- package/govendor/golang.org/x/text/internal/number/roundingmode_string.go +30 -0
- package/govendor/golang.org/x/text/internal/number/tables.go +1219 -0
- package/govendor/golang.org/x/text/internal/stringset/set.go +86 -0
- package/govendor/golang.org/x/text/internal/tag/tag.go +100 -0
- package/govendor/golang.org/x/text/language/coverage.go +187 -0
- package/govendor/golang.org/x/text/language/display/dict.go +92 -0
- package/govendor/golang.org/x/text/language/display/display.go +420 -0
- package/govendor/golang.org/x/text/language/display/lookup.go +253 -0
- package/govendor/golang.org/x/text/language/display/tables.go +53114 -0
- package/govendor/golang.org/x/text/language/doc.go +98 -0
- package/govendor/golang.org/x/text/language/language.go +605 -0
- package/govendor/golang.org/x/text/language/match.go +735 -0
- package/govendor/golang.org/x/text/language/parse.go +258 -0
- package/govendor/golang.org/x/text/language/tables.go +298 -0
- package/govendor/golang.org/x/text/language/tags.go +145 -0
- package/govendor/golang.org/x/text/message/catalog/catalog.go +365 -0
- package/govendor/golang.org/x/text/message/catalog/dict.go +133 -0
- package/govendor/golang.org/x/text/secure/bidirule/bidirule.go +346 -0
- package/govendor/golang.org/x/text/transform/transform.go +709 -0
- package/govendor/golang.org/x/text/unicode/bidi/bidi.go +359 -0
- package/govendor/golang.org/x/text/unicode/bidi/bracket.go +335 -0
- package/govendor/golang.org/x/text/unicode/bidi/core.go +1050 -0
- package/govendor/golang.org/x/text/unicode/bidi/prop.go +206 -0
- package/govendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +2042 -0
- package/govendor/golang.org/x/text/unicode/bidi/tables17.0.0.go +2135 -0
- package/govendor/golang.org/x/text/unicode/bidi/trieval.go +48 -0
- package/govendor/golang.org/x/text/unicode/norm/composition.go +524 -0
- package/govendor/golang.org/x/text/unicode/norm/forminfo.go +296 -0
- package/govendor/golang.org/x/text/unicode/norm/input.go +109 -0
- package/govendor/golang.org/x/text/unicode/norm/iter.go +454 -0
- package/govendor/golang.org/x/text/unicode/norm/normalize.go +613 -0
- package/govendor/golang.org/x/text/unicode/norm/readwriter.go +125 -0
- package/govendor/golang.org/x/text/unicode/norm/tables15.0.0.go +7907 -0
- package/govendor/golang.org/x/text/unicode/norm/tables17.0.0.go +8104 -0
- package/govendor/golang.org/x/text/unicode/norm/transform.go +89 -0
- package/govendor/golang.org/x/text/unicode/norm/trie.go +54 -0
- package/govendor/manifest.txt +11 -2
- package/govendor/software.sslmate.com/src/go-pkcs12/.gitattributes +10 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/LICENSE +28 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/README.md +31 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/bmp-string.go +63 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/crypto.go +331 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/errors.go +23 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/go.mod +3 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/internal/rc2/rc2.go +271 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/mac.go +202 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/pbkdf.go +184 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/pkcs12.go +1000 -0
- package/govendor/software.sslmate.com/src/go-pkcs12/safebags.go +107 -0
- package/package.json +11 -1
- package/types/tsconfig.json +17 -0
- package/types/typenative-npm.d.ts +1327 -80
- package/types/typenative.d.ts +1312 -25
- package/.gitattributes +0 -1
- package/.github/workflows/ci.yml +0 -68
- package/.github/workflows/npm-publish-github-packages.yml +0 -88
- package/CHANGELOG.md +0 -1358
- package/CONTRIBUTION.md +0 -133
- package/conformance.md +0 -1450
- package/examples/README.md +0 -113
- package/examples/angular-templates/README.md +0 -141
- package/examples/angular-templates/bench.mjs +0 -173
- package/examples/angular-templates/dom-type-globals.d.ts +0 -21
- package/examples/angular-templates/dom-type-stubs.ts +0 -21
- package/examples/angular-templates/main.ts +0 -135
- package/examples/angular-templates/parity.mjs +0 -157
- package/examples/angular-templates/run-node.mjs +0 -69
- package/examples/angular-templates/vendor/angular/compiler/LICENSE +0 -21
- package/examples/desktop-notes/README.md +0 -106
- package/examples/desktop-notes/bench.mjs +0 -125
- package/examples/desktop-notes/main.ts +0 -131
- package/examples/desktop-notes/package-lock.json +0 -726
- package/examples/desktop-notes/package.json +0 -9
- package/examples/desktop-notes/ui.ts +0 -176
- package/examples/dupe-finder/README.md +0 -78
- package/examples/dupe-finder/bench.mjs +0 -120
- package/examples/dupe-finder/main.ts +0 -87
- package/examples/fibonacci/README.md +0 -89
- package/examples/fibonacci/bench.mjs +0 -87
- package/examples/fibonacci/main.ts +0 -21
- package/examples/hello-world/README.md +0 -62
- package/examples/hello-world/bench.mjs +0 -66
- package/examples/hello-world/main.ts +0 -7
- package/examples/json-server/README.md +0 -131
- package/examples/json-server/bench.mjs +0 -263
- package/examples/json-server/main.ts +0 -67
- package/examples/mandelbrot-png/README.md +0 -63
- package/examples/mandelbrot-png/bench.mjs +0 -95
- package/examples/mandelbrot-png/main.ts +0 -98
- package/examples/mandelbrot-png/preview.png +0 -0
- package/examples/marked-cli/README.md +0 -175
- package/examples/marked-cli/bench.mjs +0 -178
- package/examples/marked-cli/main.ts +0 -410
- package/examples/marked-cli/parity.mjs +0 -185
- package/examples/marked-cli/vendor/marked/LICENSE +0 -44
- package/examples/marked-cli/vendor/marked/VENDOR.md +0 -26
- package/examples/openai-chat/README.md +0 -148
- package/examples/openai-chat/bench.mjs +0 -175
- package/examples/openai-chat/main.ts +0 -488
- package/examples/react-compiler/README.md +0 -185
- package/examples/react-compiler/bench.mjs +0 -181
- package/examples/react-compiler/main.ts +0 -324
- package/examples/react-compiler/parity.mjs +0 -362
- package/examples/react-compiler/run-node.mjs +0 -90
- package/examples/react-compiler/vendor/babel/LICENSE +0 -22
- package/examples/react-compiler/vendor/babel/helper-globals/data/builtin-lower.json +0 -15
- package/examples/react-compiler/vendor/babel/helper-globals/data/builtin-upper.json +0 -51
- package/examples/react-compiler/vendor/charcodes/package.json +0 -25
- package/examples/react-compiler/vendor/invariant/LICENSE +0 -21
- package/examples/react-compiler/vendor/invariant/invariant.cjs +0 -51
- package/examples/react-compiler/vendor/invariant/invariant.d.cts +0 -11
- package/examples/react-compiler/vendor/invariant/types/LICENSE +0 -21
- package/examples/react-compiler/vendor/jridgewell/gen-mapping/LICENSE +0 -19
- package/examples/react-compiler/vendor/jridgewell/resolve-uri/LICENSE +0 -19
- package/examples/react-compiler/vendor/jridgewell/sourcemap-codec/LICENSE +0 -19
- package/examples/react-compiler/vendor/jridgewell/trace-mapping/LICENSE +0 -19
- package/examples/react-compiler/vendor/js-tokens/LICENSE +0 -21
- package/examples/react-compiler/vendor/js-tokens/index.cjs +0 -23
- package/examples/react-compiler/vendor/js-tokens/index.d.cts +0 -13
- package/examples/react-compiler/vendor/jsesc/jsesc.cjs +0 -337
- package/examples/react-compiler/vendor/jsesc/jsesc.d.cts +0 -384
- package/examples/react-compiler/vendor/jsesc/types/LICENSE +0 -21
- package/examples/react-compiler/vendor/picocolors/picocolors.cjs +0 -75
- package/examples/react-compiler/vendor/picocolors/picocolors.d.cts +0 -5
- package/examples/react-compiler/vendor/picocolors/types.d.ts +0 -51
- package/examples/react-compiler/vendor/react-compiler/LICENSE +0 -21
- package/examples/react-compiler/vendor/stubs/babel-core.ts +0 -31
- package/examples/react-compiler/vendor/stubs/debug.ts +0 -18
- package/examples/react-compiler/vendor/stubs/js-tokens.d.ts +0 -13
- package/examples/react-compiler/vendor/stubs/pretty-format.ts +0 -18
- package/examples/react-compiler/vendor/zod/LICENSE +0 -21
- package/examples/react-compiler/vendor/zod-validation-error/LICENSE +0 -9
- package/examples/react-compiler/vendor/zod-validation-error/lib/utils/NonEmptyArray.ts +0 -5
- package/examples/react-compiler/vendor/zod-validation-error/lib/utils/joinPath.ts +0 -49
- package/examples/react-compiler/vendor/zod-validation-error/lib/utils/joinValues.ts +0 -48
- package/examples/react-compiler/vendor/zod-validation-error/lib/utils/stringify.ts +0 -50
- package/examples/react-compiler/vendor/zod-validation-error/lib/utils/titleCase.ts +0 -6
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/MessageBuilder.ts +0 -126
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/ValidationError.ts +0 -39
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/custom.ts +0 -12
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/errorMap.ts +0 -78
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/index.ts +0 -2
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidElement.ts +0 -12
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidKey.ts +0 -12
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidStringFormat.ts +0 -131
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidType.ts +0 -54
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidUnion.ts +0 -12
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidValue.ts +0 -40
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/notMultipleOf.ts +0 -12
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/tooBig.ts +0 -76
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/tooSmall.ts +0 -76
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/types.ts +0 -27
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/unrecognizedKeys.ts +0 -27
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/fromError.ts +0 -13
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/fromZodError.ts +0 -61
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/fromZodIssue.ts +0 -38
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/index.ts +0 -20
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/isValidationError.ts +0 -5
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/isValidationErrorLike.ts +0 -8
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/isZodErrorLike.ts +0 -11
- package/examples/react-compiler/vendor/zod-validation-error/lib/v4/toValidationError.ts +0 -20
- package/examples/react-compiler/vendor.mjs +0 -688
- package/examples/todo-cli/README.md +0 -69
- package/examples/todo-cli/bench.mjs +0 -89
- package/examples/todo-cli/main.ts +0 -92
- package/examples/yaml-cli/README.md +0 -152
- package/examples/yaml-cli/bench.mjs +0 -265
- package/examples/yaml-cli/main.ts +0 -251
- package/examples/yaml-cli/parity.mjs +0 -156
- package/examples/yaml-cli/vendor/yaml/LICENSE +0 -13
- package/examples/yaml-cli/vendor/yaml/VENDOR.md +0 -25
- package/govendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go +0 -22
- package/govendor/golang.org/x/sys/windows/types_windows_arm.go +0 -35
- package/performance/README.md +0 -196
- package/performance/any-dynamic.ts +0 -21
- package/performance/any-record-view.ts +0 -20
- package/performance/arr-hof.ts +0 -21
- package/performance/arr-push-index.ts +0 -15
- package/performance/arr-sort.ts +0 -21
- package/performance/async-await.ts +0 -24
- package/performance/class-dispatch.ts +0 -52
- package/performance/events-emit.ts +0 -27
- package/performance/exc-throw-rare.ts +0 -25
- package/performance/exc-try-catch.ts +0 -26
- package/performance/fn-closures.ts +0 -29
- package/performance/fn-recursion-tree.ts +0 -31
- package/performance/gen-for-of.ts +0 -46
- package/performance/json-roundtrip.ts +0 -27
- package/performance/map-delete.ts +0 -24
- package/performance/map-string-keys.ts +0 -22
- package/performance/num-arith-loop.ts +0 -14
- package/performance/num-bitwise.ts +0 -21
- package/performance/num-mod-int.ts +0 -16
- package/performance/num-to-string.ts +0 -16
- package/performance/obj-alloc.ts +0 -32
- package/performance/regex-exec.ts +0 -29
- package/performance/regex-site.ts +0 -28
- package/performance/set-ops.ts +0 -20
- package/performance/str-char-scan.ts +0 -35
- package/performance/str-concat-plus.ts +0 -18
- package/performance/str-concat.ts +0 -24
- package/performance/str-short-scan.ts +0 -26
- package/performance/str-split-join.ts +0 -23
- package/performance/str-template.ts +0 -16
- package/performance/union-switch.ts +0 -57
- package/tsparser/check.go +0 -158
- package/tsparser/go.mod +0 -14
- package/tsparser/go.sum +0 -22
- package/tsparser/main.go +0 -363
- package/tsparser/tsparser.exe +0 -4
package/types/typenative.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ interface Function {
|
|
|
13
13
|
call(thisArg: any, ...argArray: any[]): any;
|
|
14
14
|
/** `thisArg` is ignored for plain functions; the bound arguments are fixed */
|
|
15
15
|
bind(thisArg: any, ...argArray: any[]): any;
|
|
16
|
+
[Symbol.metadata]: DecoratorMetadata | null;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
// With strict, f.call / f.apply / f.bind are checked against f's signature
|
|
@@ -41,6 +42,8 @@ interface Number {
|
|
|
41
42
|
toFixed(fractionDigits?: number): string;
|
|
42
43
|
toPrecision(precision?: number): string;
|
|
43
44
|
toExponential(fractionDigits?: number): string;
|
|
45
|
+
/** Formatted as Intl.NumberFormat formats it (the default locale without locales) */
|
|
46
|
+
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
type PropertyKey = string | number | symbol;
|
|
@@ -100,6 +103,8 @@ interface Generator<T = any, TReturn = any, TNext = any> extends Iterator<T, TRe
|
|
|
100
103
|
interface IteratorConstructor {
|
|
101
104
|
/** An iterator over an array or generator (with the iterator helpers) */
|
|
102
105
|
from<T>(source: T[] | Generator<T>): Generator<T>;
|
|
106
|
+
/** The values of each array or generator in turn */
|
|
107
|
+
concat<T>(...sources: Array<T[] | Generator<T>>): Generator<T>;
|
|
103
108
|
}
|
|
104
109
|
declare var Iterator: IteratorConstructor;
|
|
105
110
|
|
|
@@ -125,6 +130,9 @@ interface AsyncGenerator<T = any, TReturn = any, TNext = any> extends AsyncItera
|
|
|
125
130
|
interface Disposable {
|
|
126
131
|
[Symbol.dispose](): void;
|
|
127
132
|
}
|
|
133
|
+
interface AsyncDisposable {
|
|
134
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
135
|
+
}
|
|
128
136
|
|
|
129
137
|
// await unwraps one thenable layer at a time (TypeScript's own definition,
|
|
130
138
|
// which the checker relates to T for generic T)
|
|
@@ -176,6 +184,7 @@ interface RegExp {
|
|
|
176
184
|
readonly unicode: boolean;
|
|
177
185
|
readonly unicodeSets: boolean;
|
|
178
186
|
readonly sticky: boolean;
|
|
187
|
+
readonly hasIndices: boolean;
|
|
179
188
|
test(string: string): boolean;
|
|
180
189
|
exec(string: string): RegExpExecArray | null;
|
|
181
190
|
}
|
|
@@ -184,17 +193,24 @@ interface RegExp {
|
|
|
184
193
|
interface RegExpExecArray extends Array<string> {
|
|
185
194
|
index: number;
|
|
186
195
|
readonly groups: Record<string, string> | undefined;
|
|
196
|
+
/** /d: each group's [start, end] (undefined for a group that did not take part) */
|
|
197
|
+
readonly indices?: RegExpIndicesArray;
|
|
187
198
|
}
|
|
188
199
|
|
|
200
|
+
interface RegExpIndicesArray extends Array<[number, number]> {}
|
|
201
|
+
|
|
189
202
|
// match() result: .index is set unless the regex is /g (that returns every match)
|
|
190
203
|
interface RegExpMatchArray extends Array<string> {
|
|
191
204
|
index?: number;
|
|
192
205
|
readonly groups?: Record<string, string> | undefined;
|
|
206
|
+
readonly indices?: RegExpIndicesArray;
|
|
193
207
|
}
|
|
194
208
|
|
|
195
209
|
interface RegExpConstructor {
|
|
196
210
|
new (pattern: string | RegExp, flags?: string): RegExp;
|
|
197
211
|
(pattern: string | RegExp, flags?: string): RegExp;
|
|
212
|
+
/** s escaped so that it matches itself literally inside a pattern */
|
|
213
|
+
escape(s: string): string;
|
|
198
214
|
}
|
|
199
215
|
|
|
200
216
|
declare var RegExp: RegExpConstructor;
|
|
@@ -222,6 +238,8 @@ interface Array<T> extends IterableIterator<T> {
|
|
|
222
238
|
* Adds all the elements of an array into a string, separated by the specified separator string.
|
|
223
239
|
*/
|
|
224
240
|
join(separator?: string): string;
|
|
241
|
+
/** Each element's toLocaleString, joined with commas */
|
|
242
|
+
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
225
243
|
/**
|
|
226
244
|
* Returns a copy of a section of an array.
|
|
227
245
|
*/
|
|
@@ -377,6 +395,12 @@ interface ArrayConstructor {
|
|
|
377
395
|
from<T>(arrayLike: ArrayLike<T> | Iterable<T>): T[];
|
|
378
396
|
from<T, U>(arrayLike: ArrayLike<T> | Iterable<T>, mapFn: (value: T, index: number) => U): U[];
|
|
379
397
|
of<T>(...items: T[]): T[];
|
|
398
|
+
/** An array of the (awaited) values of an async iterable, an iterable of promises, or an array */
|
|
399
|
+
fromAsync<T>(source: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
400
|
+
fromAsync<T, U>(
|
|
401
|
+
source: AsyncIterable<T> | Iterable<T> | ArrayLike<T>,
|
|
402
|
+
mapFn: (value: Awaited<T>, index: number) => U
|
|
403
|
+
): Promise<Awaited<U>[]>;
|
|
380
404
|
readonly prototype: any[];
|
|
381
405
|
}
|
|
382
406
|
|
|
@@ -401,8 +425,9 @@ interface String {
|
|
|
401
425
|
substr(from: number, length?: number): string;
|
|
402
426
|
trimLeft(): string;
|
|
403
427
|
trimRight(): string;
|
|
404
|
-
|
|
405
|
-
|
|
428
|
+
/** Locale case mapping (tr / az / lt) through golang.org/x/text/cases */
|
|
429
|
+
toLocaleUpperCase(locales?: Intl.LocalesArgument): string;
|
|
430
|
+
toLocaleLowerCase(locales?: Intl.LocalesArgument): string;
|
|
406
431
|
isWellFormed(): boolean;
|
|
407
432
|
toWellFormed(): string;
|
|
408
433
|
/** Determines whether a string contains the specified substring. */
|
|
@@ -449,7 +474,8 @@ interface String {
|
|
|
449
474
|
/** Returns the character at the given index (supports negative indices). */
|
|
450
475
|
at(index: number): string | undefined;
|
|
451
476
|
/** Compares two strings (by code unit). */
|
|
452
|
-
|
|
477
|
+
/** Without locales or options, a light approximation of the root collation; with either, Intl.Collator */
|
|
478
|
+
localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
453
479
|
/** Returns the Unicode normalization of the string. */
|
|
454
480
|
normalize(form?: 'NFC' | 'NFD' | 'NFKC' | 'NFKD'): string;
|
|
455
481
|
/** Returns a string representation. */
|
|
@@ -549,6 +575,7 @@ interface Math {
|
|
|
549
575
|
acosh(x: number): number;
|
|
550
576
|
atanh(x: number): number;
|
|
551
577
|
fround(x: number): number;
|
|
578
|
+
f16round(x: number): number;
|
|
552
579
|
imul(a: number, b: number): number;
|
|
553
580
|
clz32(x: number): number;
|
|
554
581
|
sumPrecise(values: number[]): number;
|
|
@@ -568,7 +595,7 @@ declare function encodeURIComponent(uriComponent: string): string;
|
|
|
568
595
|
declare function decodeURIComponent(uriComponent: string): string;
|
|
569
596
|
declare function encodeURI(uri: string): string;
|
|
570
597
|
declare function decodeURI(encodedURI: string): string;
|
|
571
|
-
declare function structuredClone<T>(value: T): T;
|
|
598
|
+
declare function structuredClone<T>(value: T, options?: { transfer?: any[] }): T;
|
|
572
599
|
|
|
573
600
|
// The running program (a native binary has no separate script file)
|
|
574
601
|
declare var __filename: string;
|
|
@@ -680,6 +707,16 @@ interface Process {
|
|
|
680
707
|
exitCode: number | undefined;
|
|
681
708
|
env: { [key: string]: string | undefined };
|
|
682
709
|
exit(code?: number): never;
|
|
710
|
+
/** maybeRefable's own ref() / unref() (a timer, a socket, …) */
|
|
711
|
+
ref(maybeRefable: any): void;
|
|
712
|
+
unref(maybeRefable: any): void;
|
|
713
|
+
/** Replaces the process (Unix; Windows throws ERR_FEATURE_UNAVAILABLE_ON_PLATFORM) */
|
|
714
|
+
execve(file: string, args?: readonly string[], env?: Record<string, string>): never;
|
|
715
|
+
setUncaughtExceptionCaptureCallback(fn: ((err: Error) => void) | null): void;
|
|
716
|
+
/** fn takes an uncaught error when it returns true */
|
|
717
|
+
addUncaughtExceptionCaptureCallback(fn: (err: Error) => boolean | void): void;
|
|
718
|
+
hasUncaughtExceptionCaptureCallback(): boolean;
|
|
719
|
+
|
|
683
720
|
cwd(): string;
|
|
684
721
|
chdir(directory: string): void;
|
|
685
722
|
hrtime: { (time?: [number, number]): [number, number]; bigint(): bigint };
|
|
@@ -736,7 +773,16 @@ interface Process {
|
|
|
736
773
|
};
|
|
737
774
|
/** The file mode creation mask; with an argument sets it and returns the previous one (0 on Windows) */
|
|
738
775
|
umask(mask?: number | string): number;
|
|
776
|
+
/** undefined unless the program runs under --permission (NODE_OPTIONS) */
|
|
777
|
+
readonly permission:
|
|
778
|
+
| {
|
|
779
|
+
has(permission: string, path?: string): boolean;
|
|
780
|
+
drop(permission: string, path?: string): void;
|
|
781
|
+
}
|
|
782
|
+
| undefined;
|
|
739
783
|
on(event: 'exit', listener: (code: number) => void): this;
|
|
784
|
+
/** 'message' also receives the handle sent with it (send(msg, socket)) */
|
|
785
|
+
on(event: 'message', listener: (message: any, sendHandle: any) => void): this;
|
|
740
786
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
741
787
|
once(event: 'exit', listener: (code: number) => void): this;
|
|
742
788
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
@@ -745,8 +791,10 @@ interface Process {
|
|
|
745
791
|
removeListener(event: string, listener: (...args: any[]) => void): this;
|
|
746
792
|
emit(event: string, ...args: any[]): boolean;
|
|
747
793
|
listenerCount(event: string): number;
|
|
748
|
-
// IPC of forked children (child_process.fork, cluster workers)
|
|
794
|
+
// IPC of forked children (child_process.fork, cluster workers); a connected
|
|
795
|
+
// net.Socket can be transferred with it (serialization: 'advanced')
|
|
749
796
|
send?(message: any, callback?: (error: Error | null) => void): boolean;
|
|
797
|
+
send?(message: any, handle?: any, options?: any, callback?: (error: Error | null) => void): boolean;
|
|
750
798
|
readonly connected: boolean;
|
|
751
799
|
disconnect(): void;
|
|
752
800
|
}
|
|
@@ -770,6 +818,8 @@ interface ErrorConstructor {
|
|
|
770
818
|
(message?: string, options?: ErrorOptions): Error;
|
|
771
819
|
// (V8's: accepted, without effect — there are no V8 stack frames)
|
|
772
820
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
821
|
+
/** Whether value is an Error (of any kind, from any realm) */
|
|
822
|
+
isError(value: unknown): value is Error;
|
|
773
823
|
stackTraceLimit: number;
|
|
774
824
|
prepareStackTrace?: (err: Error, stackTraces: any[]) => any;
|
|
775
825
|
}
|
|
@@ -797,6 +847,30 @@ interface AggregateErrorConstructor {
|
|
|
797
847
|
|
|
798
848
|
declare var AggregateError: AggregateErrorConstructor;
|
|
799
849
|
|
|
850
|
+
interface DOMException extends Error {
|
|
851
|
+
/** The legacy numeric code of its name (AbortError: 20), else 0 */
|
|
852
|
+
readonly code: number;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
interface DOMExceptionConstructor {
|
|
856
|
+
new (message?: string, options?: string | { name?: string; cause?: unknown }): DOMException;
|
|
857
|
+
readonly prototype: DOMException;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
declare var DOMException: DOMExceptionConstructor;
|
|
861
|
+
|
|
862
|
+
interface QuotaExceededError extends DOMException {
|
|
863
|
+
readonly quota: number | null;
|
|
864
|
+
readonly requested: number | null;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
interface QuotaExceededErrorConstructor {
|
|
868
|
+
new (message?: string, options?: { quota?: number; requested?: number }): QuotaExceededError;
|
|
869
|
+
readonly prototype: QuotaExceededError;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
declare var QuotaExceededError: QuotaExceededErrorConstructor;
|
|
873
|
+
|
|
800
874
|
interface Date {
|
|
801
875
|
getTime(): number;
|
|
802
876
|
valueOf(): number;
|
|
@@ -823,12 +897,10 @@ interface Date {
|
|
|
823
897
|
toTimeString(): string;
|
|
824
898
|
toUTCString(): string;
|
|
825
899
|
toGMTString(): string;
|
|
826
|
-
/**
|
|
827
|
-
toLocaleDateString(locales?:
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
/** en-US format; locales and options are ignored */
|
|
831
|
-
toLocaleString(locales?: string | string[], options?: any): string;
|
|
900
|
+
/** Formatted as Intl.DateTimeFormat formats it (the default locale and time zone without arguments) */
|
|
901
|
+
toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
902
|
+
toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
903
|
+
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
832
904
|
getTimezoneOffset(): number;
|
|
833
905
|
setTime(time: number): number;
|
|
834
906
|
setFullYear(year: number, month?: number, date?: number): number;
|
|
@@ -877,7 +949,7 @@ declare var Date: DateConstructor;
|
|
|
877
949
|
// --- Promise (lowered to goroutines over channels) ---
|
|
878
950
|
|
|
879
951
|
interface Promise<T> {
|
|
880
|
-
then(onfulfilled?: (value: T) =>
|
|
952
|
+
then<TResult = T>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>): Promise<TResult>;
|
|
881
953
|
catch(onrejected?: (reason: any) => any): Promise<T>;
|
|
882
954
|
finally(onfinally?: () => void): Promise<T>;
|
|
883
955
|
}
|
|
@@ -933,6 +1005,10 @@ interface Map<K, V> {
|
|
|
933
1005
|
set(key: K, value: V): this;
|
|
934
1006
|
/** Returns the value for the given key, or undefined if absent. */
|
|
935
1007
|
get(key: K): V | undefined;
|
|
1008
|
+
/** The value for key, storing defaultValue first when the key is missing. */
|
|
1009
|
+
getOrInsert(key: K, defaultValue: V): V;
|
|
1010
|
+
/** The value for key, storing callbackfn(key) first when the key is missing. */
|
|
1011
|
+
getOrInsertComputed(key: K, callbackfn: (key: K) => V): V;
|
|
936
1012
|
/** Returns true if the key exists in the Map. */
|
|
937
1013
|
has(key: K): boolean;
|
|
938
1014
|
/** Removes the entry for the given key. Returns true if the entry existed. */
|
|
@@ -996,6 +1072,8 @@ declare var Set: SetConstructor;
|
|
|
996
1072
|
interface WeakMap<K extends object, V> {
|
|
997
1073
|
set(key: K, value: V): this;
|
|
998
1074
|
get(key: K): V | undefined;
|
|
1075
|
+
getOrInsert(key: K, defaultValue: V): V;
|
|
1076
|
+
getOrInsertComputed(key: K, callbackfn: (key: K) => V): V;
|
|
999
1077
|
has(key: K): boolean;
|
|
1000
1078
|
delete(key: K): boolean;
|
|
1001
1079
|
}
|
|
@@ -1027,6 +1105,15 @@ interface SymbolConstructor {
|
|
|
1027
1105
|
readonly iterator: unique symbol;
|
|
1028
1106
|
readonly asyncIterator: unique symbol;
|
|
1029
1107
|
readonly dispose: unique symbol;
|
|
1108
|
+
readonly asyncDispose: unique symbol;
|
|
1109
|
+
/** A class's [Symbol.toPrimitive](hint) converts its instances (String(x), +x, `${x}`) */
|
|
1110
|
+
readonly toPrimitive: unique symbol;
|
|
1111
|
+
/** A class's [Symbol.toStringTag] getter names it in Object.prototype.toString */
|
|
1112
|
+
readonly toStringTag: unique symbol;
|
|
1113
|
+
/** A class's static [Symbol.hasInstance](x) decides x instanceof C */
|
|
1114
|
+
readonly hasInstance: unique symbol;
|
|
1115
|
+
/** Class decorator metadata key (C[Symbol.metadata]) */
|
|
1116
|
+
readonly metadata: unique symbol;
|
|
1030
1117
|
for(key: string): symbol;
|
|
1031
1118
|
keyFor(sym: symbol): string | undefined;
|
|
1032
1119
|
}
|
|
@@ -1037,12 +1124,26 @@ interface Symbol {
|
|
|
1037
1124
|
readonly description: string;
|
|
1038
1125
|
}
|
|
1039
1126
|
|
|
1040
|
-
// --- Decorators (
|
|
1127
|
+
// --- Decorators (TC39 Stage 3 class, method, getter, setter, field, and accessor decorators) ---
|
|
1128
|
+
|
|
1129
|
+
type DecoratorMetadataObject = Record<PropertyKey, unknown> & object;
|
|
1130
|
+
|
|
1131
|
+
type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol } } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;
|
|
1132
|
+
|
|
1133
|
+
type ClassMemberDecoratorContext =
|
|
1134
|
+
| ClassMethodDecoratorContext
|
|
1135
|
+
| ClassGetterDecoratorContext
|
|
1136
|
+
| ClassSetterDecoratorContext
|
|
1137
|
+
| ClassFieldDecoratorContext
|
|
1138
|
+
| ClassAccessorDecoratorContext;
|
|
1139
|
+
|
|
1140
|
+
type DecoratorContext = ClassDecoratorContext | ClassMemberDecoratorContext;
|
|
1041
1141
|
|
|
1042
1142
|
interface ClassDecoratorContext<Class extends abstract new (...args: any) => any = abstract new (...args: any) => any> {
|
|
1043
1143
|
readonly kind: 'class';
|
|
1044
1144
|
readonly name: string | undefined;
|
|
1045
1145
|
addInitializer(initializer: (this: Class) => void): void;
|
|
1146
|
+
readonly metadata: DecoratorMetadata;
|
|
1046
1147
|
}
|
|
1047
1148
|
|
|
1048
1149
|
interface ClassMethodDecoratorContext<
|
|
@@ -1058,11 +1159,78 @@ interface ClassMethodDecoratorContext<
|
|
|
1058
1159
|
get(object: This): Value;
|
|
1059
1160
|
};
|
|
1060
1161
|
addInitializer(initializer: (this: This) => void): void;
|
|
1162
|
+
readonly metadata: DecoratorMetadata;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
interface ClassGetterDecoratorContext<This = unknown, Value = unknown> {
|
|
1166
|
+
readonly kind: 'getter';
|
|
1167
|
+
readonly name: string | symbol;
|
|
1168
|
+
readonly static: boolean;
|
|
1169
|
+
readonly private: boolean;
|
|
1170
|
+
readonly access: {
|
|
1171
|
+
has(object: This): boolean;
|
|
1172
|
+
get(object: This): Value;
|
|
1173
|
+
};
|
|
1174
|
+
addInitializer(initializer: (this: This) => void): void;
|
|
1175
|
+
readonly metadata: DecoratorMetadata;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
interface ClassSetterDecoratorContext<This = unknown, Value = unknown> {
|
|
1179
|
+
readonly kind: 'setter';
|
|
1180
|
+
readonly name: string | symbol;
|
|
1181
|
+
readonly static: boolean;
|
|
1182
|
+
readonly private: boolean;
|
|
1183
|
+
readonly access: {
|
|
1184
|
+
has(object: This): boolean;
|
|
1185
|
+
set(object: This, value: Value): void;
|
|
1186
|
+
};
|
|
1187
|
+
addInitializer(initializer: (this: This) => void): void;
|
|
1188
|
+
readonly metadata: DecoratorMetadata;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
interface ClassAccessorDecoratorContext<This = unknown, Value = unknown> {
|
|
1192
|
+
readonly kind: 'accessor';
|
|
1193
|
+
readonly name: string | symbol;
|
|
1194
|
+
readonly static: boolean;
|
|
1195
|
+
readonly private: boolean;
|
|
1196
|
+
readonly access: {
|
|
1197
|
+
has(object: This): boolean;
|
|
1198
|
+
get(object: This): Value;
|
|
1199
|
+
set(object: This, value: Value): void;
|
|
1200
|
+
};
|
|
1201
|
+
addInitializer(initializer: (this: This) => void): void;
|
|
1202
|
+
readonly metadata: DecoratorMetadata;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
interface ClassAccessorDecoratorTarget<This, Value> {
|
|
1206
|
+
get(this: This): Value;
|
|
1207
|
+
set(this: This, value: Value): void;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
interface ClassAccessorDecoratorResult<This, Value> {
|
|
1211
|
+
get?(this: This): Value;
|
|
1212
|
+
set?(this: This, value: Value): void;
|
|
1213
|
+
init?(this: This, value: Value): Value;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
interface ClassFieldDecoratorContext<This = unknown, Value = unknown> {
|
|
1217
|
+
readonly kind: 'field';
|
|
1218
|
+
readonly name: string | symbol;
|
|
1219
|
+
readonly static: boolean;
|
|
1220
|
+
readonly private: boolean;
|
|
1221
|
+
readonly access: {
|
|
1222
|
+
has(object: This): boolean;
|
|
1223
|
+
get(object: This): Value;
|
|
1224
|
+
set(object: This, value: Value): void;
|
|
1225
|
+
};
|
|
1226
|
+
addInitializer(initializer: (this: This) => void): void;
|
|
1227
|
+
readonly metadata: DecoratorMetadata;
|
|
1061
1228
|
}
|
|
1062
1229
|
|
|
1063
1230
|
// bigint values (*big.Int): toString(radix)
|
|
1064
1231
|
interface BigInt {
|
|
1065
1232
|
toString(radix?: number): string;
|
|
1233
|
+
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
1066
1234
|
}
|
|
1067
1235
|
|
|
1068
1236
|
interface BigIntConstructor {
|
|
@@ -1101,7 +1269,16 @@ interface Uint8Array {
|
|
|
1101
1269
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
1102
1270
|
at(index: number): number | undefined;
|
|
1103
1271
|
/** Base64 of the bytes (ES2026) */
|
|
1104
|
-
toBase64(): string;
|
|
1272
|
+
toBase64(options?: { alphabet?: 'base64' | 'base64url'; omitPadding?: boolean }): string;
|
|
1273
|
+
/** Hex of the bytes (ES2026) */
|
|
1274
|
+
toHex(): string;
|
|
1275
|
+
/** Decodes base64 into this array: the characters read and bytes written */
|
|
1276
|
+
setFromBase64(
|
|
1277
|
+
string: string,
|
|
1278
|
+
options?: { alphabet?: 'base64' | 'base64url'; lastChunkHandling?: 'loose' | 'strict' | 'stop-before-partial' }
|
|
1279
|
+
): { read: number; written: number };
|
|
1280
|
+
/** Decodes hex into this array: the characters read and bytes written */
|
|
1281
|
+
setFromHex(string: string): { read: number; written: number };
|
|
1105
1282
|
[Symbol.iterator](): IterableIterator<number>;
|
|
1106
1283
|
}
|
|
1107
1284
|
|
|
@@ -1109,28 +1286,64 @@ interface Uint8ArrayConstructor {
|
|
|
1109
1286
|
new (length: number): Uint8Array;
|
|
1110
1287
|
new (array: ArrayLike<number> | Uint8Array): Uint8Array;
|
|
1111
1288
|
// A view sharing the buffer's memory
|
|
1112
|
-
new (buffer:
|
|
1289
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
|
|
1113
1290
|
from(arrayLike: ArrayLike<number> | Iterable<number>): Uint8Array;
|
|
1114
|
-
/** The bytes a base64 string encodes (ES2026) */
|
|
1115
|
-
fromBase64(
|
|
1291
|
+
/** The bytes a base64 string encodes (ES2026; a SyntaxError on bad input) */
|
|
1292
|
+
fromBase64(
|
|
1293
|
+
base64: string,
|
|
1294
|
+
options?: { alphabet?: 'base64' | 'base64url'; lastChunkHandling?: 'loose' | 'strict' | 'stop-before-partial' }
|
|
1295
|
+
): Uint8Array;
|
|
1296
|
+
/** The bytes a hex string encodes (ES2026) */
|
|
1297
|
+
fromHex(hex: string): Uint8Array;
|
|
1116
1298
|
}
|
|
1117
1299
|
|
|
1118
1300
|
declare var Uint8Array: Uint8ArrayConstructor;
|
|
1119
1301
|
|
|
1120
|
-
// An ArrayBuffer is Go []byte too; .buffer of a
|
|
1121
|
-
// (byteOffset 0), so new Float32Array(u8.buffer, u8.byteOffset, n) works
|
|
1302
|
+
// An ArrayBuffer is Go []byte too; .buffer of a Uint8Array is its own bytes
|
|
1303
|
+
// (byteOffset 0), so new Float32Array(u8.buffer, u8.byteOffset, n) works.
|
|
1304
|
+
// Resizable and detached buffers keep their state beside the bytes.
|
|
1122
1305
|
interface ArrayBuffer {
|
|
1123
1306
|
readonly byteLength: number;
|
|
1307
|
+
/** The most a resizable buffer can grow to (byteLength otherwise; 0 once detached) */
|
|
1308
|
+
readonly maxByteLength: number;
|
|
1309
|
+
readonly resizable: boolean;
|
|
1310
|
+
/** Whether transfer() moved its bytes out */
|
|
1311
|
+
readonly detached: boolean;
|
|
1124
1312
|
slice(begin?: number, end?: number): ArrayBuffer;
|
|
1313
|
+
/** A resizable buffer's new length (new bytes read 0; typed arrays and DataViews follow, Uint8Arrays don't) */
|
|
1314
|
+
resize(newLength: number): void;
|
|
1315
|
+
/** The bytes (resized to newLength, zero-filled) in a new buffer, resizable as this one is; this one is detached */
|
|
1316
|
+
transfer(newLength?: number): ArrayBuffer;
|
|
1317
|
+
/** transfer() into a fixed-length buffer */
|
|
1318
|
+
transferToFixedLength(newLength?: number): ArrayBuffer;
|
|
1125
1319
|
}
|
|
1126
1320
|
|
|
1127
1321
|
interface ArrayBufferConstructor {
|
|
1128
|
-
new (byteLength: number): ArrayBuffer;
|
|
1322
|
+
new (byteLength: number, options?: { maxByteLength?: number }): ArrayBuffer;
|
|
1129
1323
|
isView(arg: any): boolean;
|
|
1130
1324
|
}
|
|
1131
1325
|
|
|
1132
1326
|
declare var ArrayBuffer: ArrayBufferConstructor;
|
|
1133
1327
|
|
|
1328
|
+
// A SharedArrayBuffer is an ArrayBuffer here (workers are processes: nothing
|
|
1329
|
+
// is shared); { maxByteLength } makes it growable
|
|
1330
|
+
interface SharedArrayBuffer {
|
|
1331
|
+
readonly byteLength: number;
|
|
1332
|
+
readonly maxByteLength: number;
|
|
1333
|
+
readonly growable: boolean;
|
|
1334
|
+
slice(begin?: number, end?: number): SharedArrayBuffer;
|
|
1335
|
+
/** A growable buffer's new length (it can't shrink) */
|
|
1336
|
+
grow(newLength: number): void;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
interface SharedArrayBufferConstructor {
|
|
1340
|
+
new (byteLength: number, options?: { maxByteLength?: number }): SharedArrayBuffer;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
|
|
1344
|
+
|
|
1345
|
+
type ArrayBufferLike = ArrayBuffer | SharedArrayBuffer;
|
|
1346
|
+
|
|
1134
1347
|
// Typed arrays other than Uint8Array: Go slices of the element type; views
|
|
1135
1348
|
// made on an ArrayBuffer share its memory
|
|
1136
1349
|
interface TypedArray<Self> {
|
|
@@ -1179,7 +1392,7 @@ interface TypedArray<Self> {
|
|
|
1179
1392
|
interface TypedArrayConstructor<T> {
|
|
1180
1393
|
new (length?: number): T;
|
|
1181
1394
|
new (array: ArrayLike<number> | Iterable<number> | TypedArray<any>): T;
|
|
1182
|
-
new (buffer:
|
|
1395
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): T;
|
|
1183
1396
|
from(arrayLike: ArrayLike<number> | Iterable<number> | TypedArray<any>, mapfn?: (v: number, k: number) => number): T;
|
|
1184
1397
|
of(...items: number[]): T;
|
|
1185
1398
|
readonly BYTES_PER_ELEMENT: number;
|
|
@@ -1201,6 +1414,46 @@ interface Float32Array extends TypedArray<Float32Array> {}
|
|
|
1201
1414
|
declare var Float32Array: TypedArrayConstructor<Float32Array>;
|
|
1202
1415
|
interface Float64Array extends TypedArray<Float64Array> {}
|
|
1203
1416
|
declare var Float64Array: TypedArrayConstructor<Float64Array>;
|
|
1417
|
+
/** Elements stored as IEEE 754 binary16 (ES2025) */
|
|
1418
|
+
interface Float16Array extends TypedArray<Float16Array> {}
|
|
1419
|
+
declare var Float16Array: TypedArrayConstructor<Float16Array>;
|
|
1420
|
+
|
|
1421
|
+
// 64-bit integer arrays whose elements are bigints (writes wrap modulo 2^64)
|
|
1422
|
+
interface BigIntTypedArray<Self> {
|
|
1423
|
+
readonly length: number;
|
|
1424
|
+
readonly byteLength: number;
|
|
1425
|
+
readonly byteOffset: number;
|
|
1426
|
+
readonly BYTES_PER_ELEMENT: number;
|
|
1427
|
+
readonly buffer: ArrayBuffer;
|
|
1428
|
+
[index: number]: bigint;
|
|
1429
|
+
fill(value: bigint, start?: number, end?: number): Self;
|
|
1430
|
+
set(array: ArrayLike<bigint> | Self, offset?: number): void;
|
|
1431
|
+
subarray(begin?: number, end?: number): Self;
|
|
1432
|
+
slice(start?: number, end?: number): Self;
|
|
1433
|
+
at(index: number): bigint | undefined;
|
|
1434
|
+
indexOf(searchElement: bigint, fromIndex?: number): number;
|
|
1435
|
+
includes(searchElement: bigint, fromIndex?: number): boolean;
|
|
1436
|
+
join(separator?: string): string;
|
|
1437
|
+
reverse(): Self;
|
|
1438
|
+
keys(): IterableIterator<number>;
|
|
1439
|
+
values(): IterableIterator<bigint>;
|
|
1440
|
+
toString(): string;
|
|
1441
|
+
[Symbol.iterator](): IterableIterator<bigint>;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
interface BigIntTypedArrayConstructor<T> {
|
|
1445
|
+
new (length?: number): T;
|
|
1446
|
+
new (array: ArrayLike<bigint> | Iterable<bigint>): T;
|
|
1447
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): T;
|
|
1448
|
+
from(arrayLike: ArrayLike<bigint> | Iterable<bigint>): T;
|
|
1449
|
+
of(...items: bigint[]): T;
|
|
1450
|
+
readonly BYTES_PER_ELEMENT: number;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
interface BigInt64Array extends BigIntTypedArray<BigInt64Array> {}
|
|
1454
|
+
declare var BigInt64Array: BigIntTypedArrayConstructor<BigInt64Array>;
|
|
1455
|
+
interface BigUint64Array extends BigIntTypedArray<BigUint64Array> {}
|
|
1456
|
+
declare var BigUint64Array: BigIntTypedArrayConstructor<BigUint64Array>;
|
|
1204
1457
|
|
|
1205
1458
|
// Typed reads and writes at byte offsets of an ArrayBuffer (big-endian
|
|
1206
1459
|
// unless littleEndian is true)
|
|
@@ -1214,6 +1467,7 @@ interface DataView {
|
|
|
1214
1467
|
getUint16(byteOffset: number, littleEndian?: boolean): number;
|
|
1215
1468
|
getInt32(byteOffset: number, littleEndian?: boolean): number;
|
|
1216
1469
|
getUint32(byteOffset: number, littleEndian?: boolean): number;
|
|
1470
|
+
getFloat16(byteOffset: number, littleEndian?: boolean): number;
|
|
1217
1471
|
getFloat32(byteOffset: number, littleEndian?: boolean): number;
|
|
1218
1472
|
getFloat64(byteOffset: number, littleEndian?: boolean): number;
|
|
1219
1473
|
getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
|
|
@@ -1224,6 +1478,7 @@ interface DataView {
|
|
|
1224
1478
|
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
1225
1479
|
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
1226
1480
|
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
1481
|
+
setFloat16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
1227
1482
|
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
1228
1483
|
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
1229
1484
|
setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
|
|
@@ -1231,7 +1486,7 @@ interface DataView {
|
|
|
1231
1486
|
}
|
|
1232
1487
|
|
|
1233
1488
|
declare var DataView: {
|
|
1234
|
-
new (buffer:
|
|
1489
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
|
|
1235
1490
|
};
|
|
1236
1491
|
|
|
1237
1492
|
interface Buffer extends Uint8Array {
|
|
@@ -1242,8 +1497,11 @@ interface Buffer extends Uint8Array {
|
|
|
1242
1497
|
subarray(start?: number, end?: number): Buffer;
|
|
1243
1498
|
slice(start?: number, end?: number): Buffer;
|
|
1244
1499
|
indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
|
1500
|
+
/** (Node 26: an end bounds the search) */
|
|
1501
|
+
indexOf(value: string | number | Uint8Array, byteOffset: number, end: number, encoding?: BufferEncoding): number;
|
|
1245
1502
|
lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
|
1246
1503
|
includes(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): boolean;
|
|
1504
|
+
includes(value: string | number | Uint8Array, byteOffset: number, end: number, encoding?: BufferEncoding): boolean;
|
|
1247
1505
|
fill(value: string | number | Uint8Array, offset?: number, end?: number): this;
|
|
1248
1506
|
fill(value: string, encoding: BufferEncoding): this;
|
|
1249
1507
|
write(string: string, offset?: number, length?: number, encoding?: BufferEncoding): number;
|
|
@@ -1310,8 +1568,13 @@ interface BufferConstructor {
|
|
|
1310
1568
|
from(data: string, encoding?: BufferEncoding): Buffer;
|
|
1311
1569
|
from(data: ArrayLike<number> | Uint8Array | ArrayBuffer): Buffer;
|
|
1312
1570
|
alloc(size: number, fill?: string | number | Uint8Array, encoding?: BufferEncoding): Buffer;
|
|
1313
|
-
|
|
1314
|
-
|
|
1571
|
+
/** (alignment: Node 26; Go allocations are already 8-byte aligned) */
|
|
1572
|
+
allocUnsafe(size: number, alignment?: number): Buffer;
|
|
1573
|
+
allocUnsafeSlow(size: number, alignment?: number): Buffer;
|
|
1574
|
+
/** The length of the string the bytes decode to (Node 26) */
|
|
1575
|
+
stringLength(input: Uint8Array | ArrayBuffer, encoding?: BufferEncoding): number;
|
|
1576
|
+
/** The size of Node's internal pool (64 KiB in Node 26) */
|
|
1577
|
+
readonly poolSize: number;
|
|
1315
1578
|
concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
|
|
1316
1579
|
byteLength(string: string | Uint8Array, encoding?: BufferEncoding): number;
|
|
1317
1580
|
isBuffer(obj: any): obj is Buffer;
|
|
@@ -1332,7 +1595,7 @@ declare var TextEncoder: { new (): TextEncoder };
|
|
|
1332
1595
|
|
|
1333
1596
|
interface TextDecoder {
|
|
1334
1597
|
readonly encoding: string;
|
|
1335
|
-
decode(input?: Uint8Array, options?: { stream?: boolean }): string;
|
|
1598
|
+
decode(input?: Uint8Array | ArrayBufferLike, options?: { stream?: boolean }): string;
|
|
1336
1599
|
}
|
|
1337
1600
|
declare var TextDecoder: { new (label?: string): TextDecoder };
|
|
1338
1601
|
|
|
@@ -1378,6 +1641,60 @@ declare var URL: {
|
|
|
1378
1641
|
parse(input: string, base?: string): URL | null;
|
|
1379
1642
|
};
|
|
1380
1643
|
|
|
1644
|
+
type URLPatternInput = string | URLPatternInit;
|
|
1645
|
+
|
|
1646
|
+
interface URLPatternComponentResult {
|
|
1647
|
+
input: string;
|
|
1648
|
+
groups: Record<string, string | undefined>;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
interface URLPatternInit {
|
|
1652
|
+
protocol?: string;
|
|
1653
|
+
username?: string;
|
|
1654
|
+
password?: string;
|
|
1655
|
+
hostname?: string;
|
|
1656
|
+
port?: string;
|
|
1657
|
+
pathname?: string;
|
|
1658
|
+
search?: string;
|
|
1659
|
+
hash?: string;
|
|
1660
|
+
baseURL?: string;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
interface URLPatternOptions {
|
|
1664
|
+
ignoreCase?: boolean;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
interface URLPatternResult {
|
|
1668
|
+
inputs: URLPatternInput[];
|
|
1669
|
+
protocol: URLPatternComponentResult;
|
|
1670
|
+
username: URLPatternComponentResult;
|
|
1671
|
+
password: URLPatternComponentResult;
|
|
1672
|
+
hostname: URLPatternComponentResult;
|
|
1673
|
+
port: URLPatternComponentResult;
|
|
1674
|
+
pathname: URLPatternComponentResult;
|
|
1675
|
+
search: URLPatternComponentResult;
|
|
1676
|
+
hash: URLPatternComponentResult;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
interface URLPattern {
|
|
1680
|
+
readonly hasRegExpGroups: boolean;
|
|
1681
|
+
readonly protocol: string;
|
|
1682
|
+
readonly username: string;
|
|
1683
|
+
readonly password: string;
|
|
1684
|
+
readonly hostname: string;
|
|
1685
|
+
readonly port: string;
|
|
1686
|
+
readonly pathname: string;
|
|
1687
|
+
readonly search: string;
|
|
1688
|
+
readonly hash: string;
|
|
1689
|
+
exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
|
|
1690
|
+
test(input?: URLPatternInput, baseURL?: string | URL): boolean;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
declare var URLPattern: {
|
|
1694
|
+
new (input?: URLPatternInput, baseURL?: string | URL, options?: URLPatternOptions): URLPattern;
|
|
1695
|
+
new (input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
|
|
1696
|
+
};
|
|
1697
|
+
|
|
1381
1698
|
interface Event {
|
|
1382
1699
|
readonly type: string;
|
|
1383
1700
|
readonly defaultPrevented: boolean;
|
|
@@ -1387,6 +1704,46 @@ interface Event {
|
|
|
1387
1704
|
}
|
|
1388
1705
|
declare var Event: { new (type: string, options?: { cancelable?: boolean }): Event };
|
|
1389
1706
|
|
|
1707
|
+
interface CustomEvent<T = any> extends Event {
|
|
1708
|
+
readonly detail: T;
|
|
1709
|
+
}
|
|
1710
|
+
declare var CustomEvent: { new <T = any>(type: string, options?: { detail?: T; cancelable?: boolean }): CustomEvent<T> };
|
|
1711
|
+
|
|
1712
|
+
interface ErrorEvent extends Event {
|
|
1713
|
+
readonly message: string;
|
|
1714
|
+
readonly filename: string;
|
|
1715
|
+
readonly lineno: number;
|
|
1716
|
+
readonly colno: number;
|
|
1717
|
+
readonly error: any;
|
|
1718
|
+
}
|
|
1719
|
+
declare var ErrorEvent: {
|
|
1720
|
+
new (type: string, options?: { message?: string; filename?: string; lineno?: number; colno?: number; error?: any; cancelable?: boolean }): ErrorEvent;
|
|
1721
|
+
};
|
|
1722
|
+
|
|
1723
|
+
interface Navigator {
|
|
1724
|
+
readonly hardwareConcurrency: number;
|
|
1725
|
+
/** The OS locale (LANG / LC_ALL), en-US by default */
|
|
1726
|
+
readonly language: string;
|
|
1727
|
+
readonly languages: readonly string[];
|
|
1728
|
+
readonly platform: string;
|
|
1729
|
+
readonly userAgent: string;
|
|
1730
|
+
}
|
|
1731
|
+
declare var navigator: Navigator;
|
|
1732
|
+
|
|
1733
|
+
interface Storage {
|
|
1734
|
+
readonly length: number;
|
|
1735
|
+
getItem(key: string): string | null;
|
|
1736
|
+
setItem(key: string, value: string): void;
|
|
1737
|
+
removeItem(key: string): void;
|
|
1738
|
+
clear(): void;
|
|
1739
|
+
key(index: number): string | null;
|
|
1740
|
+
}
|
|
1741
|
+
declare var Storage: { prototype: Storage };
|
|
1742
|
+
/** In memory, for the life of the process */
|
|
1743
|
+
declare var sessionStorage: Storage;
|
|
1744
|
+
/** Persisted to the file TN_LOCALSTORAGE_FILE names (Node: --localstorage-file); undefined without one */
|
|
1745
|
+
declare var localStorage: Storage | undefined;
|
|
1746
|
+
|
|
1390
1747
|
interface EventTarget {
|
|
1391
1748
|
addEventListener(type: string, listener: (event: Event) => void, options?: { once?: boolean }): void;
|
|
1392
1749
|
removeEventListener(type: string, listener: (event: Event) => void): void;
|
|
@@ -1474,6 +1831,34 @@ interface UnderlyingSource<R = any> {
|
|
|
1474
1831
|
pull?(controller: ReadableStreamDefaultController<R>): void | PromiseLike<void>;
|
|
1475
1832
|
cancel?(reason?: any): void | PromiseLike<void>;
|
|
1476
1833
|
}
|
|
1834
|
+
/** A byte stream's controller: enqueue bytes, or fill the waiting BYOB read's view */
|
|
1835
|
+
interface ReadableByteStreamController {
|
|
1836
|
+
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
1837
|
+
readonly desiredSize: number | null;
|
|
1838
|
+
enqueue(chunk: Uint8Array): void;
|
|
1839
|
+
close(): void;
|
|
1840
|
+
error(e?: any): void;
|
|
1841
|
+
}
|
|
1842
|
+
interface ReadableStreamBYOBRequest {
|
|
1843
|
+
/** The unfilled part of the reader's view */
|
|
1844
|
+
readonly view: Uint8Array | null;
|
|
1845
|
+
respond(bytesWritten: number): void;
|
|
1846
|
+
respondWithNewView(view: Uint8Array): void;
|
|
1847
|
+
}
|
|
1848
|
+
interface UnderlyingByteSource {
|
|
1849
|
+
type: 'bytes';
|
|
1850
|
+
autoAllocateChunkSize?: number;
|
|
1851
|
+
start?(controller: ReadableByteStreamController): any;
|
|
1852
|
+
pull?(controller: ReadableByteStreamController): void | PromiseLike<void>;
|
|
1853
|
+
cancel?(reason?: any): void | PromiseLike<void>;
|
|
1854
|
+
}
|
|
1855
|
+
/** getReader({ mode: 'byob' }): reads fill the caller's view */
|
|
1856
|
+
interface ReadableStreamBYOBReader {
|
|
1857
|
+
readonly closed: Promise<void>;
|
|
1858
|
+
read<T extends Uint8Array>(view: T, options?: { min?: number }): Promise<ReadableStreamReadResult<T>>;
|
|
1859
|
+
releaseLock(): void;
|
|
1860
|
+
cancel(reason?: any): Promise<void>;
|
|
1861
|
+
}
|
|
1477
1862
|
interface QueuingStrategy<T = any> {
|
|
1478
1863
|
highWaterMark?: number;
|
|
1479
1864
|
size?(chunk: T): number;
|
|
@@ -1496,6 +1881,7 @@ interface ReadableWritablePair<R = any, W = any> {
|
|
|
1496
1881
|
}
|
|
1497
1882
|
interface ReadableStream<R = any> extends AsyncIterable<R> {
|
|
1498
1883
|
readonly locked: boolean;
|
|
1884
|
+
getReader(options: { mode: 'byob' }): ReadableStreamBYOBReader;
|
|
1499
1885
|
getReader(options?: { mode?: undefined }): ReadableStreamDefaultReader<R>;
|
|
1500
1886
|
cancel(reason?: any): Promise<void>;
|
|
1501
1887
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
@@ -1505,10 +1891,12 @@ interface ReadableStream<R = any> extends AsyncIterable<R> {
|
|
|
1505
1891
|
[Symbol.asyncIterator](): AsyncIterableIterator<R>;
|
|
1506
1892
|
}
|
|
1507
1893
|
declare var ReadableStream: {
|
|
1894
|
+
new (underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
1508
1895
|
new <R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
1509
1896
|
from<T>(iterable: Iterable<T> | AsyncIterable<T>): ReadableStream<T>;
|
|
1510
1897
|
};
|
|
1511
1898
|
declare var ReadableStreamDefaultReader: { new <R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R> };
|
|
1899
|
+
declare var ReadableStreamBYOBReader: { new (stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader };
|
|
1512
1900
|
|
|
1513
1901
|
interface WritableStreamDefaultController {
|
|
1514
1902
|
readonly signal: AbortSignal;
|
|
@@ -1596,6 +1984,8 @@ interface Blob {
|
|
|
1596
1984
|
arrayBuffer(): Promise<Uint8Array>;
|
|
1597
1985
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
1598
1986
|
stream(): ReadableStream<Uint8Array>;
|
|
1987
|
+
/** The bytes as a stream of UTF-8 text chunks */
|
|
1988
|
+
textStream(): ReadableStream<string>;
|
|
1599
1989
|
}
|
|
1600
1990
|
declare var Blob: { new (blobParts?: BlobPart[], options?: { type?: string }): Blob };
|
|
1601
1991
|
interface File extends Blob {
|
|
@@ -1691,6 +2081,81 @@ declare var Response: {
|
|
|
1691
2081
|
|
|
1692
2082
|
declare function fetch(input: string | URL | Request, init?: RequestInit): Promise<Response>;
|
|
1693
2083
|
|
|
2084
|
+
// --- WebSocket (WHATWG, as in Node) ---
|
|
2085
|
+
|
|
2086
|
+
interface MessageEvent extends Event {
|
|
2087
|
+
readonly data: any;
|
|
2088
|
+
readonly origin: string;
|
|
2089
|
+
readonly lastEventId: string;
|
|
2090
|
+
}
|
|
2091
|
+
declare var MessageEvent: {
|
|
2092
|
+
new (type: string, options?: { data?: any; origin?: string; lastEventId?: string }): MessageEvent;
|
|
2093
|
+
};
|
|
2094
|
+
|
|
2095
|
+
interface CloseEvent extends Event {
|
|
2096
|
+
readonly code: number;
|
|
2097
|
+
readonly reason: string;
|
|
2098
|
+
readonly wasClean: boolean;
|
|
2099
|
+
}
|
|
2100
|
+
declare var CloseEvent: {
|
|
2101
|
+
new (type: string, options?: { code?: number; reason?: string; wasClean?: boolean }): CloseEvent;
|
|
2102
|
+
};
|
|
2103
|
+
|
|
2104
|
+
interface WebSocketEventMap {
|
|
2105
|
+
close: CloseEvent;
|
|
2106
|
+
error: ErrorEvent;
|
|
2107
|
+
message: MessageEvent;
|
|
2108
|
+
open: Event;
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
type BinaryType = 'blob' | 'arraybuffer';
|
|
2112
|
+
|
|
2113
|
+
interface WebSocket extends EventTarget {
|
|
2114
|
+
binaryType: BinaryType;
|
|
2115
|
+
readonly bufferedAmount: number;
|
|
2116
|
+
readonly extensions: string;
|
|
2117
|
+
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
|
|
2118
|
+
onerror: ((this: WebSocket, ev: ErrorEvent) => any) | null;
|
|
2119
|
+
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
|
|
2120
|
+
onopen: ((this: WebSocket, ev: Event) => any) | null;
|
|
2121
|
+
readonly protocol: string;
|
|
2122
|
+
readonly readyState: number;
|
|
2123
|
+
readonly url: string;
|
|
2124
|
+
close(code?: number, reason?: string): void;
|
|
2125
|
+
send(data: string | ArrayBuffer | Blob | Uint8Array | TypedArray<any> | DataView): void;
|
|
2126
|
+
readonly CLOSED: number;
|
|
2127
|
+
readonly CLOSING: number;
|
|
2128
|
+
readonly CONNECTING: number;
|
|
2129
|
+
readonly OPEN: number;
|
|
2130
|
+
|
|
2131
|
+
addEventListener<K extends keyof WebSocketEventMap>(
|
|
2132
|
+
type: K,
|
|
2133
|
+
listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
|
|
2134
|
+
options?: { once?: boolean }
|
|
2135
|
+
): void;
|
|
2136
|
+
addEventListener(type: string, listener: (event: Event) => void, options?: { once?: boolean }): void;
|
|
2137
|
+
removeEventListener<K extends keyof WebSocketEventMap>(
|
|
2138
|
+
type: K,
|
|
2139
|
+
listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
|
|
2140
|
+
options?: { once?: boolean }
|
|
2141
|
+
): void;
|
|
2142
|
+
removeEventListener(type: string, listener: (event: Event) => void, options?: { once?: boolean }): void;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
interface WebSocketInit {
|
|
2146
|
+
protocols?: string | string[];
|
|
2147
|
+
headers?: HeadersInit;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
declare var WebSocket: {
|
|
2151
|
+
prototype: WebSocket;
|
|
2152
|
+
new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket;
|
|
2153
|
+
readonly CLOSED: number;
|
|
2154
|
+
readonly CLOSING: number;
|
|
2155
|
+
readonly CONNECTING: number;
|
|
2156
|
+
readonly OPEN: number;
|
|
2157
|
+
};
|
|
2158
|
+
|
|
1694
2159
|
declare function setImmediate<A extends any[]>(callback: (...args: A) => void, ...args: A): NodeJS.Immediate;
|
|
1695
2160
|
declare function clearImmediate(immediate?: NodeJS.Immediate | number): void;
|
|
1696
2161
|
|
|
@@ -1759,6 +2224,7 @@ declare namespace JSX {
|
|
|
1759
2224
|
// Reflect: the Object operations as functions
|
|
1760
2225
|
declare namespace Reflect {
|
|
1761
2226
|
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
|
|
2227
|
+
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
|
|
1762
2228
|
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
|
|
1763
2229
|
function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
|
|
1764
2230
|
function get(target: object, propertyKey: PropertyKey, receiver?: any): any;
|
|
@@ -1768,3 +2234,824 @@ declare namespace Reflect {
|
|
|
1768
2234
|
function ownKeys(target: object): (string | symbol)[];
|
|
1769
2235
|
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
|
|
1770
2236
|
}
|
|
2237
|
+
|
|
2238
|
+
// WebAssembly: modules compiled and run by wazero (pure Go). i32 / f32 / f64
|
|
2239
|
+
// cross as numbers, i64 as bigints. Tables can be exported and imported again,
|
|
2240
|
+
// but not created, read or written (wazero has no table API)
|
|
2241
|
+
declare namespace WebAssembly {
|
|
2242
|
+
type ImportExportKind = 'function' | 'table' | 'memory' | 'global' | 'tag';
|
|
2243
|
+
type ValueType = 'i32' | 'i64' | 'f32' | 'f64' | 'externref' | 'anyfunc' | 'v128';
|
|
2244
|
+
type ExportValue = Function | Global | Memory | Table;
|
|
2245
|
+
type Exports = Record<string, ExportValue>;
|
|
2246
|
+
type ImportValue = ExportValue | number | bigint;
|
|
2247
|
+
type ModuleImports = Record<string, ImportValue>;
|
|
2248
|
+
type Imports = Record<string, ModuleImports>;
|
|
2249
|
+
type BufferSource = ArrayBuffer | Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array | DataView;
|
|
2250
|
+
|
|
2251
|
+
interface ModuleImportDescriptor {
|
|
2252
|
+
module: string;
|
|
2253
|
+
name: string;
|
|
2254
|
+
kind: ImportExportKind;
|
|
2255
|
+
}
|
|
2256
|
+
interface ModuleExportDescriptor {
|
|
2257
|
+
name: string;
|
|
2258
|
+
kind: ImportExportKind;
|
|
2259
|
+
}
|
|
2260
|
+
interface WebAssemblyInstantiatedSource {
|
|
2261
|
+
module: Module;
|
|
2262
|
+
instance: Instance;
|
|
2263
|
+
}
|
|
2264
|
+
interface MemoryDescriptor {
|
|
2265
|
+
initial: number;
|
|
2266
|
+
maximum?: number;
|
|
2267
|
+
shared?: boolean;
|
|
2268
|
+
}
|
|
2269
|
+
interface GlobalDescriptor {
|
|
2270
|
+
value: ValueType;
|
|
2271
|
+
mutable?: boolean;
|
|
2272
|
+
}
|
|
2273
|
+
interface TableDescriptor {
|
|
2274
|
+
element: 'anyfunc' | 'externref';
|
|
2275
|
+
initial: number;
|
|
2276
|
+
maximum?: number;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
class Module {
|
|
2280
|
+
constructor(bytes: BufferSource);
|
|
2281
|
+
static imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
2282
|
+
static exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
2283
|
+
static customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
2284
|
+
}
|
|
2285
|
+
class Instance {
|
|
2286
|
+
constructor(module: Module, importObject?: Imports);
|
|
2287
|
+
readonly exports: Exports;
|
|
2288
|
+
}
|
|
2289
|
+
// .buffer views the memory's bytes; after grow() read .buffer again
|
|
2290
|
+
class Memory {
|
|
2291
|
+
constructor(descriptor: MemoryDescriptor);
|
|
2292
|
+
readonly buffer: ArrayBuffer;
|
|
2293
|
+
grow(delta: number): number;
|
|
2294
|
+
}
|
|
2295
|
+
class Global {
|
|
2296
|
+
constructor(descriptor: GlobalDescriptor, v?: any);
|
|
2297
|
+
value: any;
|
|
2298
|
+
valueOf(): any;
|
|
2299
|
+
}
|
|
2300
|
+
class Table {
|
|
2301
|
+
constructor(descriptor: TableDescriptor, value?: any);
|
|
2302
|
+
readonly length: number;
|
|
2303
|
+
get(index: number): any;
|
|
2304
|
+
set(index: number, value?: any): void;
|
|
2305
|
+
grow(delta: number, value?: any): number;
|
|
2306
|
+
}
|
|
2307
|
+
class CompileError extends Error {
|
|
2308
|
+
constructor(message?: string);
|
|
2309
|
+
}
|
|
2310
|
+
class LinkError extends Error {
|
|
2311
|
+
constructor(message?: string);
|
|
2312
|
+
}
|
|
2313
|
+
class RuntimeError extends Error {
|
|
2314
|
+
constructor(message?: string);
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
function validate(bytes: BufferSource): boolean;
|
|
2318
|
+
function compile(bytes: BufferSource): Promise<Module>;
|
|
2319
|
+
// (bytes first: a Module has no instance members, so bytes would match it)
|
|
2320
|
+
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
2321
|
+
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
2322
|
+
// the Response comes from the fetch globals
|
|
2323
|
+
function compileStreaming(source: Response | Promise<Response>): Promise<Module>;
|
|
2324
|
+
function instantiateStreaming(source: Response | Promise<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
// --- Intl ---
|
|
2328
|
+
//
|
|
2329
|
+
// Formats as Node 26 (ICU 78) does for the locales whose data is generated
|
|
2330
|
+
// (scripts/gen-intl-data.mjs: en, en-GB, en-IN, de, fr, es, es-MX, it, pt-BR,
|
|
2331
|
+
// pt-PT, nl, sv, da, nb, fi, pl, cs, ru, uk, tr, el, ja, zh, zh-Hant, ko, ar,
|
|
2332
|
+
// he, hi, id, th, vi); other locales fall back by language, then to the
|
|
2333
|
+
// default locale (LC_ALL / LANG, or the Windows user locale). Language tags,
|
|
2334
|
+
// plural rules, collation and locale case mapping run on golang.org/x/text.
|
|
2335
|
+
// The gregorian calendar only.
|
|
2336
|
+
declare namespace Intl {
|
|
2337
|
+
type LocalesArgument = string | Locale | readonly (string | Locale)[] | undefined;
|
|
2338
|
+
type LocaleMatcher = 'lookup' | 'best fit';
|
|
2339
|
+
|
|
2340
|
+
interface ResolvedOptions {
|
|
2341
|
+
locale: string;
|
|
2342
|
+
[key: string]: any;
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
// --- NumberFormat
|
|
2346
|
+
type NumberFormatPartType =
|
|
2347
|
+
| 'compact' | 'currency' | 'decimal' | 'exponentInteger' | 'exponentMinusSign' | 'exponentSeparator'
|
|
2348
|
+
| 'fraction' | 'group' | 'infinity' | 'integer' | 'literal' | 'minusSign' | 'nan' | 'plusSign'
|
|
2349
|
+
| 'percentSign' | 'unit' | 'unknown' | 'approximatelySign';
|
|
2350
|
+
interface NumberFormatPart {
|
|
2351
|
+
type: NumberFormatPartType;
|
|
2352
|
+
value: string;
|
|
2353
|
+
}
|
|
2354
|
+
interface NumberRangeFormatPart extends NumberFormatPart {
|
|
2355
|
+
source: 'startRange' | 'endRange' | 'shared';
|
|
2356
|
+
}
|
|
2357
|
+
interface NumberFormatOptions {
|
|
2358
|
+
localeMatcher?: LocaleMatcher;
|
|
2359
|
+
numberingSystem?: string;
|
|
2360
|
+
style?: 'decimal' | 'percent' | 'currency' | 'unit';
|
|
2361
|
+
currency?: string;
|
|
2362
|
+
currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name';
|
|
2363
|
+
currencySign?: 'standard' | 'accounting';
|
|
2364
|
+
unit?: string;
|
|
2365
|
+
unitDisplay?: 'short' | 'long' | 'narrow';
|
|
2366
|
+
notation?: 'standard' | 'scientific' | 'engineering' | 'compact';
|
|
2367
|
+
compactDisplay?: 'short' | 'long';
|
|
2368
|
+
signDisplay?: 'auto' | 'never' | 'always' | 'exceptZero' | 'negative';
|
|
2369
|
+
useGrouping?: boolean | 'always' | 'auto' | 'min2' | 'true' | 'false';
|
|
2370
|
+
minimumIntegerDigits?: number;
|
|
2371
|
+
minimumFractionDigits?: number;
|
|
2372
|
+
maximumFractionDigits?: number;
|
|
2373
|
+
minimumSignificantDigits?: number;
|
|
2374
|
+
maximumSignificantDigits?: number;
|
|
2375
|
+
roundingMode?: 'ceil' | 'floor' | 'expand' | 'trunc' | 'halfCeil' | 'halfFloor' | 'halfExpand' | 'halfTrunc' | 'halfEven';
|
|
2376
|
+
roundingPriority?: 'auto' | 'morePrecision' | 'lessPrecision';
|
|
2377
|
+
roundingIncrement?: number;
|
|
2378
|
+
trailingZeroDisplay?: 'auto' | 'stripIfInteger';
|
|
2379
|
+
}
|
|
2380
|
+
class NumberFormat {
|
|
2381
|
+
constructor(locales?: LocalesArgument, options?: NumberFormatOptions);
|
|
2382
|
+
/** A bound function (`arr.map(nf.format)` works) */
|
|
2383
|
+
readonly format: (value: number | bigint | string) => string;
|
|
2384
|
+
formatToParts(value: number | bigint | string): NumberFormatPart[];
|
|
2385
|
+
formatRange(start: number | bigint | string, end: number | bigint | string): string;
|
|
2386
|
+
formatRangeToParts(start: number | bigint | string, end: number | bigint | string): NumberRangeFormatPart[];
|
|
2387
|
+
resolvedOptions(): ResolvedOptions;
|
|
2388
|
+
static supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: LocaleMatcher }): string[];
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
// --- DateTimeFormat
|
|
2392
|
+
type DateTimeFormatPartType =
|
|
2393
|
+
| 'day' | 'dayPeriod' | 'era' | 'hour' | 'literal' | 'minute' | 'month' | 'second' | 'timeZoneName'
|
|
2394
|
+
| 'weekday' | 'year' | 'fractionalSecond' | 'relatedYear' | 'yearName' | 'unknown';
|
|
2395
|
+
interface DateTimeFormatPart {
|
|
2396
|
+
type: DateTimeFormatPartType;
|
|
2397
|
+
value: string;
|
|
2398
|
+
}
|
|
2399
|
+
interface DateTimeRangeFormatPart extends DateTimeFormatPart {
|
|
2400
|
+
source: 'startRange' | 'endRange' | 'shared';
|
|
2401
|
+
}
|
|
2402
|
+
interface DateTimeFormatOptions {
|
|
2403
|
+
localeMatcher?: LocaleMatcher;
|
|
2404
|
+
calendar?: string;
|
|
2405
|
+
numberingSystem?: string;
|
|
2406
|
+
timeZone?: string;
|
|
2407
|
+
hour12?: boolean;
|
|
2408
|
+
hourCycle?: 'h11' | 'h12' | 'h23' | 'h24';
|
|
2409
|
+
formatMatcher?: 'basic' | 'best fit';
|
|
2410
|
+
weekday?: 'long' | 'short' | 'narrow';
|
|
2411
|
+
era?: 'long' | 'short' | 'narrow';
|
|
2412
|
+
year?: 'numeric' | '2-digit';
|
|
2413
|
+
month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow';
|
|
2414
|
+
day?: 'numeric' | '2-digit';
|
|
2415
|
+
dayPeriod?: 'narrow' | 'short' | 'long';
|
|
2416
|
+
hour?: 'numeric' | '2-digit';
|
|
2417
|
+
minute?: 'numeric' | '2-digit';
|
|
2418
|
+
second?: 'numeric' | '2-digit';
|
|
2419
|
+
fractionalSecondDigits?: 1 | 2 | 3;
|
|
2420
|
+
timeZoneName?: 'short' | 'long' | 'shortOffset' | 'longOffset' | 'shortGeneric' | 'longGeneric';
|
|
2421
|
+
dateStyle?: 'full' | 'long' | 'medium' | 'short';
|
|
2422
|
+
timeStyle?: 'full' | 'long' | 'medium' | 'short';
|
|
2423
|
+
}
|
|
2424
|
+
class DateTimeFormat {
|
|
2425
|
+
constructor(locales?: LocalesArgument, options?: DateTimeFormatOptions);
|
|
2426
|
+
/** A bound function; without an argument it formats the current time */
|
|
2427
|
+
readonly format: (date?: Date | number) => string;
|
|
2428
|
+
formatToParts(date?: Date | number): DateTimeFormatPart[];
|
|
2429
|
+
formatRange(start: Date | number, end: Date | number): string;
|
|
2430
|
+
formatRangeToParts(start: Date | number, end: Date | number): DateTimeRangeFormatPart[];
|
|
2431
|
+
resolvedOptions(): ResolvedOptions;
|
|
2432
|
+
static supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: LocaleMatcher }): string[];
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
// --- Collator
|
|
2436
|
+
interface CollatorOptions {
|
|
2437
|
+
localeMatcher?: LocaleMatcher;
|
|
2438
|
+
usage?: 'sort' | 'search';
|
|
2439
|
+
sensitivity?: 'base' | 'accent' | 'case' | 'variant';
|
|
2440
|
+
ignorePunctuation?: boolean;
|
|
2441
|
+
collation?: string;
|
|
2442
|
+
numeric?: boolean;
|
|
2443
|
+
caseFirst?: 'upper' | 'lower' | 'false';
|
|
2444
|
+
}
|
|
2445
|
+
class Collator {
|
|
2446
|
+
constructor(locales?: LocalesArgument, options?: CollatorOptions);
|
|
2447
|
+
/** A bound function (`arr.sort(collator.compare)` works) */
|
|
2448
|
+
readonly compare: (x: string, y: string) => number;
|
|
2449
|
+
resolvedOptions(): ResolvedOptions;
|
|
2450
|
+
static supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: LocaleMatcher }): string[];
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
// --- PluralRules
|
|
2454
|
+
type LDMLPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
|
|
2455
|
+
interface PluralRulesOptions {
|
|
2456
|
+
localeMatcher?: LocaleMatcher;
|
|
2457
|
+
type?: 'cardinal' | 'ordinal';
|
|
2458
|
+
minimumIntegerDigits?: number;
|
|
2459
|
+
minimumFractionDigits?: number;
|
|
2460
|
+
maximumFractionDigits?: number;
|
|
2461
|
+
minimumSignificantDigits?: number;
|
|
2462
|
+
maximumSignificantDigits?: number;
|
|
2463
|
+
roundingMode?: NumberFormatOptions['roundingMode'];
|
|
2464
|
+
roundingPriority?: NumberFormatOptions['roundingPriority'];
|
|
2465
|
+
roundingIncrement?: number;
|
|
2466
|
+
trailingZeroDisplay?: NumberFormatOptions['trailingZeroDisplay'];
|
|
2467
|
+
}
|
|
2468
|
+
class PluralRules {
|
|
2469
|
+
constructor(locales?: LocalesArgument, options?: PluralRulesOptions);
|
|
2470
|
+
select(n: number): LDMLPluralRule;
|
|
2471
|
+
selectRange(start: number, end: number): LDMLPluralRule;
|
|
2472
|
+
resolvedOptions(): ResolvedOptions;
|
|
2473
|
+
static supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: LocaleMatcher }): string[];
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
// --- ListFormat
|
|
2477
|
+
interface ListFormatOptions {
|
|
2478
|
+
localeMatcher?: LocaleMatcher;
|
|
2479
|
+
type?: 'conjunction' | 'disjunction' | 'unit';
|
|
2480
|
+
style?: 'long' | 'short' | 'narrow';
|
|
2481
|
+
}
|
|
2482
|
+
interface ListFormatPart {
|
|
2483
|
+
type: 'element' | 'literal';
|
|
2484
|
+
value: string;
|
|
2485
|
+
}
|
|
2486
|
+
class ListFormat {
|
|
2487
|
+
constructor(locales?: LocalesArgument, options?: ListFormatOptions);
|
|
2488
|
+
format(list: Iterable<string>): string;
|
|
2489
|
+
formatToParts(list: Iterable<string>): ListFormatPart[];
|
|
2490
|
+
resolvedOptions(): ResolvedOptions;
|
|
2491
|
+
static supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: LocaleMatcher }): string[];
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
// --- RelativeTimeFormat
|
|
2495
|
+
type RelativeTimeFormatUnit =
|
|
2496
|
+
| 'year' | 'years' | 'quarter' | 'quarters' | 'month' | 'months' | 'week' | 'weeks' | 'day' | 'days'
|
|
2497
|
+
| 'hour' | 'hours' | 'minute' | 'minutes' | 'second' | 'seconds';
|
|
2498
|
+
interface RelativeTimeFormatOptions {
|
|
2499
|
+
localeMatcher?: LocaleMatcher;
|
|
2500
|
+
numberingSystem?: string;
|
|
2501
|
+
numeric?: 'always' | 'auto';
|
|
2502
|
+
style?: 'long' | 'short' | 'narrow';
|
|
2503
|
+
}
|
|
2504
|
+
interface RelativeTimeFormatPart {
|
|
2505
|
+
type: string;
|
|
2506
|
+
value: string;
|
|
2507
|
+
unit?: string;
|
|
2508
|
+
}
|
|
2509
|
+
class RelativeTimeFormat {
|
|
2510
|
+
constructor(locales?: LocalesArgument, options?: RelativeTimeFormatOptions);
|
|
2511
|
+
format(value: number, unit: RelativeTimeFormatUnit): string;
|
|
2512
|
+
formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
|
|
2513
|
+
resolvedOptions(): ResolvedOptions;
|
|
2514
|
+
static supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: LocaleMatcher }): string[];
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
// --- Segmenter
|
|
2518
|
+
interface SegmenterOptions {
|
|
2519
|
+
localeMatcher?: LocaleMatcher;
|
|
2520
|
+
granularity?: 'grapheme' | 'word' | 'sentence';
|
|
2521
|
+
}
|
|
2522
|
+
interface SegmentData {
|
|
2523
|
+
segment: string;
|
|
2524
|
+
index: number;
|
|
2525
|
+
input: string;
|
|
2526
|
+
/** Word granularity only */
|
|
2527
|
+
isWordLike?: boolean;
|
|
2528
|
+
}
|
|
2529
|
+
interface Segments {
|
|
2530
|
+
containing(codeUnitIndex?: number): SegmentData | undefined;
|
|
2531
|
+
[Symbol.iterator](): IterableIterator<SegmentData>;
|
|
2532
|
+
}
|
|
2533
|
+
class Segmenter {
|
|
2534
|
+
constructor(locales?: LocalesArgument, options?: SegmenterOptions);
|
|
2535
|
+
segment(input: string): Segments;
|
|
2536
|
+
resolvedOptions(): ResolvedOptions;
|
|
2537
|
+
static supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: LocaleMatcher }): string[];
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
// --- DisplayNames
|
|
2541
|
+
interface DisplayNamesOptions {
|
|
2542
|
+
localeMatcher?: LocaleMatcher;
|
|
2543
|
+
type: 'language' | 'region' | 'script' | 'currency' | 'calendar' | 'dateTimeField';
|
|
2544
|
+
style?: 'long' | 'short' | 'narrow';
|
|
2545
|
+
fallback?: 'code' | 'none';
|
|
2546
|
+
languageDisplay?: 'dialect' | 'standard';
|
|
2547
|
+
}
|
|
2548
|
+
class DisplayNames {
|
|
2549
|
+
constructor(locales: LocalesArgument, options: DisplayNamesOptions);
|
|
2550
|
+
of(code: string): string | undefined;
|
|
2551
|
+
resolvedOptions(): ResolvedOptions;
|
|
2552
|
+
static supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: LocaleMatcher }): string[];
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
// --- Locale
|
|
2556
|
+
interface LocaleOptions {
|
|
2557
|
+
baseName?: string;
|
|
2558
|
+
calendar?: string;
|
|
2559
|
+
caseFirst?: 'upper' | 'lower' | 'false';
|
|
2560
|
+
collation?: string;
|
|
2561
|
+
hourCycle?: 'h11' | 'h12' | 'h23' | 'h24';
|
|
2562
|
+
language?: string;
|
|
2563
|
+
numberingSystem?: string;
|
|
2564
|
+
numeric?: boolean;
|
|
2565
|
+
region?: string;
|
|
2566
|
+
script?: string;
|
|
2567
|
+
}
|
|
2568
|
+
class Locale {
|
|
2569
|
+
constructor(tag: string | Locale, options?: LocaleOptions);
|
|
2570
|
+
readonly baseName: string;
|
|
2571
|
+
readonly language: string;
|
|
2572
|
+
readonly script: string | undefined;
|
|
2573
|
+
readonly region: string | undefined;
|
|
2574
|
+
readonly calendar: string | undefined;
|
|
2575
|
+
readonly caseFirst: string | undefined;
|
|
2576
|
+
readonly collation: string | undefined;
|
|
2577
|
+
readonly hourCycle: string | undefined;
|
|
2578
|
+
readonly numberingSystem: string | undefined;
|
|
2579
|
+
readonly numeric: boolean;
|
|
2580
|
+
maximize(): Locale;
|
|
2581
|
+
minimize(): Locale;
|
|
2582
|
+
toString(): string;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
function getCanonicalLocales(locales?: string | readonly string[]): string[];
|
|
2586
|
+
function supportedValuesOf(key: 'calendar' | 'collation' | 'currency' | 'numberingSystem' | 'timeZone' | 'unit'): string[];
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
// --- Temporal (Node 26's flagless global) ---
|
|
2590
|
+
//
|
|
2591
|
+
// The ISO 8601 calendar only: passing a non-ISO calendar id throws a
|
|
2592
|
+
// RangeError, like an unknown one. toLocaleString returns the same string as
|
|
2593
|
+
// toString (there is no Intl; this follows the fixed en-US convention Date
|
|
2594
|
+
// uses).
|
|
2595
|
+
|
|
2596
|
+
declare namespace Temporal {
|
|
2597
|
+
type CalendarLike = PlainDate | PlainDateTime | PlainMonthDay | PlainYearMonth | ZonedDateTime | string;
|
|
2598
|
+
type DurationLike = Duration | DurationLikeObject | string;
|
|
2599
|
+
type InstantLike = Instant | string;
|
|
2600
|
+
type PlainDateLike = PlainDate | ZonedDateTime | PlainDateTime | DateLikeObject | string;
|
|
2601
|
+
type PlainDateTimeLike = PlainDateTime | ZonedDateTime | PlainDate | DateTimeLikeObject | string;
|
|
2602
|
+
type PlainMonthDayLike = PlainMonthDay | DateLikeObject | string;
|
|
2603
|
+
type PlainTimeLike = PlainTime | PlainDateTime | ZonedDateTime | TimeLikeObject | string;
|
|
2604
|
+
type PlainYearMonthLike = PlainYearMonth | YearMonthLikeObject | string;
|
|
2605
|
+
type TimeZoneLike = ZonedDateTime | string;
|
|
2606
|
+
type ZonedDateTimeLike = ZonedDateTime | ZonedDateTimeLikeObject | string;
|
|
2607
|
+
|
|
2608
|
+
type PartialTemporalLike<T extends object> = {
|
|
2609
|
+
[P in Exclude<keyof T, "calendar" | "timeZone">]?: T[P] | undefined;
|
|
2610
|
+
};
|
|
2611
|
+
|
|
2612
|
+
interface DateLikeObject {
|
|
2613
|
+
year?: number | undefined;
|
|
2614
|
+
era?: string | undefined;
|
|
2615
|
+
eraYear?: number | undefined;
|
|
2616
|
+
month?: number | undefined;
|
|
2617
|
+
monthCode?: string | undefined;
|
|
2618
|
+
day: number;
|
|
2619
|
+
calendar?: string | undefined;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
interface DateTimeLikeObject extends DateLikeObject, TimeLikeObject {}
|
|
2623
|
+
|
|
2624
|
+
interface DurationLikeObject {
|
|
2625
|
+
years?: number | undefined;
|
|
2626
|
+
months?: number | undefined;
|
|
2627
|
+
weeks?: number | undefined;
|
|
2628
|
+
days?: number | undefined;
|
|
2629
|
+
hours?: number | undefined;
|
|
2630
|
+
minutes?: number | undefined;
|
|
2631
|
+
seconds?: number | undefined;
|
|
2632
|
+
milliseconds?: number | undefined;
|
|
2633
|
+
microseconds?: number | undefined;
|
|
2634
|
+
nanoseconds?: number | undefined;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
interface TimeLikeObject {
|
|
2638
|
+
hour?: number | undefined;
|
|
2639
|
+
minute?: number | undefined;
|
|
2640
|
+
second?: number | undefined;
|
|
2641
|
+
millisecond?: number | undefined;
|
|
2642
|
+
microsecond?: number | undefined;
|
|
2643
|
+
nanosecond?: number | undefined;
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
interface YearMonthLikeObject extends Omit<DateLikeObject, "day"> {}
|
|
2647
|
+
|
|
2648
|
+
interface ZonedDateTimeLikeObject extends DateTimeLikeObject {
|
|
2649
|
+
timeZone: TimeZoneLike;
|
|
2650
|
+
offset?: string | undefined;
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
type DateUnit = "year" | "month" | "week" | "day";
|
|
2654
|
+
type TimeUnit = "hour" | "minute" | "second" | "millisecond" | "microsecond" | "nanosecond";
|
|
2655
|
+
type PluralizeUnit<T extends DateUnit | TimeUnit> =
|
|
2656
|
+
| T
|
|
2657
|
+
| {
|
|
2658
|
+
year: "years";
|
|
2659
|
+
month: "months";
|
|
2660
|
+
week: "weeks";
|
|
2661
|
+
day: "days";
|
|
2662
|
+
hour: "hours";
|
|
2663
|
+
minute: "minutes";
|
|
2664
|
+
second: "seconds";
|
|
2665
|
+
millisecond: "milliseconds";
|
|
2666
|
+
microsecond: "microseconds";
|
|
2667
|
+
nanosecond: "nanoseconds";
|
|
2668
|
+
}[T];
|
|
2669
|
+
|
|
2670
|
+
interface DisambiguationOptions {
|
|
2671
|
+
disambiguation?: "compatible" | "earlier" | "later" | "reject" | undefined;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
interface OverflowOptions {
|
|
2675
|
+
overflow?: "constrain" | "reject" | undefined;
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
interface TransitionOptions {
|
|
2679
|
+
direction: "next" | "previous";
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
interface RoundingOptions<Units extends DateUnit | TimeUnit> {
|
|
2683
|
+
smallestUnit?: PluralizeUnit<Units> | undefined;
|
|
2684
|
+
roundingIncrement?: number | undefined;
|
|
2685
|
+
roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
interface RoundingOptionsWithLargestUnit<Units extends DateUnit | TimeUnit> extends RoundingOptions<Units> {
|
|
2689
|
+
largestUnit?: "auto" | PluralizeUnit<Units> | undefined;
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
interface ToStringRoundingOptions<Units extends DateUnit | TimeUnit> extends Pick<RoundingOptions<Units>, "smallestUnit" | "roundingMode"> {}
|
|
2693
|
+
|
|
2694
|
+
interface ToStringRoundingOptionsWithFractionalSeconds<Units extends DateUnit | TimeUnit> extends ToStringRoundingOptions<Units> {
|
|
2695
|
+
fractionalSecondDigits?: "auto" | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | undefined;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
namespace Now {
|
|
2699
|
+
function timeZoneId(): string;
|
|
2700
|
+
function instant(): Instant;
|
|
2701
|
+
function plainDateTimeISO(timeZone?: TimeZoneLike): PlainDateTime;
|
|
2702
|
+
function zonedDateTimeISO(timeZone?: TimeZoneLike): ZonedDateTime;
|
|
2703
|
+
function plainDateISO(timeZone?: TimeZoneLike): PlainDate;
|
|
2704
|
+
function plainTimeISO(timeZone?: TimeZoneLike): PlainTime;
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
interface PlainDateToStringOptions {
|
|
2708
|
+
calendarName?: "auto" | "always" | "never" | "critical" | undefined;
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
interface PlainDateToZonedDateTimeOptions {
|
|
2712
|
+
plainTime?: PlainTimeLike | undefined;
|
|
2713
|
+
timeZone: TimeZoneLike;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
interface PlainDate {
|
|
2717
|
+
readonly calendarId: string;
|
|
2718
|
+
readonly era: string | undefined;
|
|
2719
|
+
readonly eraYear: number | undefined;
|
|
2720
|
+
readonly year: number;
|
|
2721
|
+
readonly month: number;
|
|
2722
|
+
readonly monthCode: string;
|
|
2723
|
+
readonly day: number;
|
|
2724
|
+
readonly dayOfWeek: number;
|
|
2725
|
+
readonly dayOfYear: number;
|
|
2726
|
+
readonly weekOfYear: number | undefined;
|
|
2727
|
+
readonly yearOfWeek: number | undefined;
|
|
2728
|
+
readonly daysInWeek: number;
|
|
2729
|
+
readonly daysInMonth: number;
|
|
2730
|
+
readonly daysInYear: number;
|
|
2731
|
+
readonly monthsInYear: number;
|
|
2732
|
+
readonly inLeapYear: boolean;
|
|
2733
|
+
toPlainYearMonth(): PlainYearMonth;
|
|
2734
|
+
toPlainMonthDay(): PlainMonthDay;
|
|
2735
|
+
add(duration: DurationLike, options?: OverflowOptions): PlainDate;
|
|
2736
|
+
subtract(duration: DurationLike, options?: OverflowOptions): PlainDate;
|
|
2737
|
+
with(dateLike: PartialTemporalLike<DateLikeObject>, options?: OverflowOptions): PlainDate;
|
|
2738
|
+
withCalendar(calendarLike: CalendarLike): PlainDate;
|
|
2739
|
+
until(other: PlainDateLike, options?: RoundingOptionsWithLargestUnit<DateUnit>): Duration;
|
|
2740
|
+
since(other: PlainDateLike, options?: RoundingOptionsWithLargestUnit<DateUnit>): Duration;
|
|
2741
|
+
equals(other: PlainDateLike): boolean;
|
|
2742
|
+
toPlainDateTime(time?: PlainTimeLike): PlainDateTime;
|
|
2743
|
+
toZonedDateTime(timeZone: TimeZoneLike): ZonedDateTime;
|
|
2744
|
+
toZonedDateTime(item: PlainDateToZonedDateTimeOptions): ZonedDateTime;
|
|
2745
|
+
toString(options?: PlainDateToStringOptions): string;
|
|
2746
|
+
toLocaleString(locales?: string | string[], options?: any): string;
|
|
2747
|
+
toJSON(): string;
|
|
2748
|
+
valueOf(): never;
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
interface PlainDateConstructor {
|
|
2752
|
+
new (isoYear: number, isoMonth: number, isoDay: number, calendar?: string): PlainDate;
|
|
2753
|
+
readonly prototype: PlainDate;
|
|
2754
|
+
from(item: PlainDateLike, options?: OverflowOptions): PlainDate;
|
|
2755
|
+
compare(one: PlainDateLike, two: PlainDateLike): number;
|
|
2756
|
+
}
|
|
2757
|
+
var PlainDate: PlainDateConstructor;
|
|
2758
|
+
|
|
2759
|
+
interface PlainTimeToStringOptions extends ToStringRoundingOptionsWithFractionalSeconds<Exclude<TimeUnit, "hour">> {}
|
|
2760
|
+
|
|
2761
|
+
interface PlainTime {
|
|
2762
|
+
readonly hour: number;
|
|
2763
|
+
readonly minute: number;
|
|
2764
|
+
readonly second: number;
|
|
2765
|
+
readonly millisecond: number;
|
|
2766
|
+
readonly microsecond: number;
|
|
2767
|
+
readonly nanosecond: number;
|
|
2768
|
+
add(duration: DurationLike): PlainTime;
|
|
2769
|
+
subtract(duration: DurationLike): PlainTime;
|
|
2770
|
+
with(timeLike: PartialTemporalLike<TimeLikeObject>, options?: OverflowOptions): PlainTime;
|
|
2771
|
+
until(other: PlainTimeLike, options?: RoundingOptionsWithLargestUnit<TimeUnit>): Duration;
|
|
2772
|
+
since(other: PlainTimeLike, options?: RoundingOptionsWithLargestUnit<TimeUnit>): Duration;
|
|
2773
|
+
equals(other: PlainTimeLike): boolean;
|
|
2774
|
+
round(roundTo: PluralizeUnit<TimeUnit>): PlainTime;
|
|
2775
|
+
round(roundTo: RoundingOptions<TimeUnit>): PlainTime;
|
|
2776
|
+
toString(options?: PlainTimeToStringOptions): string;
|
|
2777
|
+
toLocaleString(locales?: string | string[], options?: any): string;
|
|
2778
|
+
toJSON(): string;
|
|
2779
|
+
valueOf(): never;
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
interface PlainTimeConstructor {
|
|
2783
|
+
new (hour?: number, minute?: number, second?: number, millisecond?: number, microsecond?: number, nanosecond?: number): PlainTime;
|
|
2784
|
+
readonly prototype: PlainTime;
|
|
2785
|
+
from(item: PlainTimeLike, options?: OverflowOptions): PlainTime;
|
|
2786
|
+
compare(one: PlainTimeLike, two: PlainTimeLike): number;
|
|
2787
|
+
}
|
|
2788
|
+
var PlainTime: PlainTimeConstructor;
|
|
2789
|
+
|
|
2790
|
+
interface PlainDateTimeToStringOptions extends PlainDateToStringOptions, PlainTimeToStringOptions {}
|
|
2791
|
+
|
|
2792
|
+
interface PlainDateTime {
|
|
2793
|
+
readonly calendarId: string;
|
|
2794
|
+
readonly era: string | undefined;
|
|
2795
|
+
readonly eraYear: number | undefined;
|
|
2796
|
+
readonly year: number;
|
|
2797
|
+
readonly month: number;
|
|
2798
|
+
readonly monthCode: string;
|
|
2799
|
+
readonly day: number;
|
|
2800
|
+
readonly hour: number;
|
|
2801
|
+
readonly minute: number;
|
|
2802
|
+
readonly second: number;
|
|
2803
|
+
readonly millisecond: number;
|
|
2804
|
+
readonly microsecond: number;
|
|
2805
|
+
readonly nanosecond: number;
|
|
2806
|
+
readonly dayOfWeek: number;
|
|
2807
|
+
readonly dayOfYear: number;
|
|
2808
|
+
readonly weekOfYear: number | undefined;
|
|
2809
|
+
readonly yearOfWeek: number | undefined;
|
|
2810
|
+
readonly daysInWeek: number;
|
|
2811
|
+
readonly daysInMonth: number;
|
|
2812
|
+
readonly daysInYear: number;
|
|
2813
|
+
readonly monthsInYear: number;
|
|
2814
|
+
readonly inLeapYear: boolean;
|
|
2815
|
+
with(dateTimeLike: PartialTemporalLike<DateTimeLikeObject>, options?: OverflowOptions): PlainDateTime;
|
|
2816
|
+
withPlainTime(plainTime?: PlainTimeLike): PlainDateTime;
|
|
2817
|
+
withCalendar(calendar: CalendarLike): PlainDateTime;
|
|
2818
|
+
add(duration: DurationLike, options?: OverflowOptions): PlainDateTime;
|
|
2819
|
+
subtract(duration: DurationLike, options?: OverflowOptions): PlainDateTime;
|
|
2820
|
+
until(other: PlainDateTimeLike, options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>): Duration;
|
|
2821
|
+
since(other: PlainDateTimeLike, options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>): Duration;
|
|
2822
|
+
round(roundTo: PluralizeUnit<"day" | TimeUnit>): PlainDateTime;
|
|
2823
|
+
round(roundTo: RoundingOptions<"day" | TimeUnit>): PlainDateTime;
|
|
2824
|
+
equals(other: PlainDateTimeLike): boolean;
|
|
2825
|
+
toString(options?: PlainDateTimeToStringOptions): string;
|
|
2826
|
+
toLocaleString(locales?: string | string[], options?: any): string;
|
|
2827
|
+
toJSON(): string;
|
|
2828
|
+
valueOf(): never;
|
|
2829
|
+
toZonedDateTime(timeZone: TimeZoneLike, options?: DisambiguationOptions): ZonedDateTime;
|
|
2830
|
+
toPlainDate(): PlainDate;
|
|
2831
|
+
toPlainTime(): PlainTime;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
interface PlainDateTimeConstructor {
|
|
2835
|
+
new (isoYear: number, isoMonth: number, isoDay: number, hour?: number, minute?: number, second?: number, millisecond?: number, microsecond?: number, nanosecond?: number, calendar?: string): PlainDateTime;
|
|
2836
|
+
readonly prototype: PlainDateTime;
|
|
2837
|
+
from(item: PlainDateTimeLike, options?: OverflowOptions): PlainDateTime;
|
|
2838
|
+
compare(one: PlainDateTimeLike, two: PlainDateTimeLike): number;
|
|
2839
|
+
}
|
|
2840
|
+
var PlainDateTime: PlainDateTimeConstructor;
|
|
2841
|
+
|
|
2842
|
+
interface ZonedDateTimeToStringOptions extends PlainDateTimeToStringOptions {
|
|
2843
|
+
offset?: "auto" | "never" | undefined;
|
|
2844
|
+
timeZoneName?: "auto" | "never" | "critical" | undefined;
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
interface ZonedDateTimeFromOptions extends OverflowOptions, DisambiguationOptions {
|
|
2848
|
+
offset?: "use" | "ignore" | "prefer" | "reject" | undefined;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
interface ZonedDateTime {
|
|
2852
|
+
readonly calendarId: string;
|
|
2853
|
+
readonly timeZoneId: string;
|
|
2854
|
+
readonly era: string | undefined;
|
|
2855
|
+
readonly eraYear: number | undefined;
|
|
2856
|
+
readonly year: number;
|
|
2857
|
+
readonly month: number;
|
|
2858
|
+
readonly monthCode: string;
|
|
2859
|
+
readonly day: number;
|
|
2860
|
+
readonly hour: number;
|
|
2861
|
+
readonly minute: number;
|
|
2862
|
+
readonly second: number;
|
|
2863
|
+
readonly millisecond: number;
|
|
2864
|
+
readonly microsecond: number;
|
|
2865
|
+
readonly nanosecond: number;
|
|
2866
|
+
readonly epochMilliseconds: number;
|
|
2867
|
+
readonly epochNanoseconds: bigint;
|
|
2868
|
+
readonly dayOfWeek: number;
|
|
2869
|
+
readonly dayOfYear: number;
|
|
2870
|
+
readonly weekOfYear: number | undefined;
|
|
2871
|
+
readonly yearOfWeek: number | undefined;
|
|
2872
|
+
readonly hoursInDay: number;
|
|
2873
|
+
readonly daysInWeek: number;
|
|
2874
|
+
readonly daysInMonth: number;
|
|
2875
|
+
readonly daysInYear: number;
|
|
2876
|
+
readonly monthsInYear: number;
|
|
2877
|
+
readonly inLeapYear: boolean;
|
|
2878
|
+
readonly offsetNanoseconds: number;
|
|
2879
|
+
readonly offset: string;
|
|
2880
|
+
with(zonedDateTimeLike: PartialTemporalLike<ZonedDateTimeLikeObject>, options?: ZonedDateTimeFromOptions): ZonedDateTime;
|
|
2881
|
+
withPlainTime(plainTime?: PlainTimeLike): ZonedDateTime;
|
|
2882
|
+
withTimeZone(timeZone: TimeZoneLike): ZonedDateTime;
|
|
2883
|
+
withCalendar(calendar: CalendarLike): ZonedDateTime;
|
|
2884
|
+
add(duration: DurationLike, options?: OverflowOptions): ZonedDateTime;
|
|
2885
|
+
subtract(duration: DurationLike, options?: OverflowOptions): ZonedDateTime;
|
|
2886
|
+
until(other: ZonedDateTimeLike, options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>): Duration;
|
|
2887
|
+
since(other: ZonedDateTimeLike, options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>): Duration;
|
|
2888
|
+
round(roundTo: PluralizeUnit<"day" | TimeUnit>): ZonedDateTime;
|
|
2889
|
+
round(roundTo: RoundingOptions<"day" | TimeUnit>): ZonedDateTime;
|
|
2890
|
+
equals(other: ZonedDateTimeLike): boolean;
|
|
2891
|
+
toString(options?: ZonedDateTimeToStringOptions): string;
|
|
2892
|
+
toLocaleString(locales?: string | string[], options?: any): string;
|
|
2893
|
+
toJSON(): string;
|
|
2894
|
+
valueOf(): never;
|
|
2895
|
+
startOfDay(): ZonedDateTime;
|
|
2896
|
+
getTimeZoneTransition(direction: "next" | "previous"): ZonedDateTime | null;
|
|
2897
|
+
getTimeZoneTransition(direction: TransitionOptions): ZonedDateTime | null;
|
|
2898
|
+
toInstant(): Instant;
|
|
2899
|
+
toPlainDate(): PlainDate;
|
|
2900
|
+
toPlainTime(): PlainTime;
|
|
2901
|
+
toPlainDateTime(): PlainDateTime;
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
interface ZonedDateTimeConstructor {
|
|
2905
|
+
new (epochNanoseconds: bigint, timeZone: string, calendar?: string): ZonedDateTime;
|
|
2906
|
+
readonly prototype: ZonedDateTime;
|
|
2907
|
+
from(item: ZonedDateTimeLike, options?: ZonedDateTimeFromOptions): ZonedDateTime;
|
|
2908
|
+
compare(one: ZonedDateTimeLike, two: ZonedDateTimeLike): number;
|
|
2909
|
+
}
|
|
2910
|
+
var ZonedDateTime: ZonedDateTimeConstructor;
|
|
2911
|
+
|
|
2912
|
+
interface DurationRelativeToOptions {
|
|
2913
|
+
relativeTo?: ZonedDateTimeLike | PlainDateLike | undefined;
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2916
|
+
interface DurationRoundingOptions extends DurationRelativeToOptions, RoundingOptionsWithLargestUnit<DateUnit | TimeUnit> {}
|
|
2917
|
+
|
|
2918
|
+
interface DurationToStringOptions extends ToStringRoundingOptionsWithFractionalSeconds<Exclude<TimeUnit, "hour" | "minute">> {}
|
|
2919
|
+
|
|
2920
|
+
interface DurationTotalOptions extends DurationRelativeToOptions {
|
|
2921
|
+
unit: PluralizeUnit<DateUnit | TimeUnit>;
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
interface Duration {
|
|
2925
|
+
readonly years: number;
|
|
2926
|
+
readonly months: number;
|
|
2927
|
+
readonly weeks: number;
|
|
2928
|
+
readonly days: number;
|
|
2929
|
+
readonly hours: number;
|
|
2930
|
+
readonly minutes: number;
|
|
2931
|
+
readonly seconds: number;
|
|
2932
|
+
readonly milliseconds: number;
|
|
2933
|
+
readonly microseconds: number;
|
|
2934
|
+
readonly nanoseconds: number;
|
|
2935
|
+
readonly sign: number;
|
|
2936
|
+
readonly blank: boolean;
|
|
2937
|
+
with(durationLike: PartialTemporalLike<DurationLikeObject>): Duration;
|
|
2938
|
+
negated(): Duration;
|
|
2939
|
+
abs(): Duration;
|
|
2940
|
+
add(other: DurationLike): Duration;
|
|
2941
|
+
subtract(other: DurationLike): Duration;
|
|
2942
|
+
round(roundTo: PluralizeUnit<"day" | TimeUnit>): Duration;
|
|
2943
|
+
round(roundTo: DurationRoundingOptions): Duration;
|
|
2944
|
+
total(totalOf: PluralizeUnit<"day" | TimeUnit>): number;
|
|
2945
|
+
total(totalOf: DurationTotalOptions): number;
|
|
2946
|
+
toString(options?: DurationToStringOptions): string;
|
|
2947
|
+
toLocaleString(locales?: string | string[], options?: any): string;
|
|
2948
|
+
toJSON(): string;
|
|
2949
|
+
valueOf(): never;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
interface DurationConstructor {
|
|
2953
|
+
new (years?: number, months?: number, weeks?: number, days?: number, hours?: number, minutes?: number, seconds?: number, milliseconds?: number, microseconds?: number, nanoseconds?: number): Duration;
|
|
2954
|
+
readonly prototype: Duration;
|
|
2955
|
+
from(item: DurationLike): Duration;
|
|
2956
|
+
compare(one: DurationLike, two: DurationLike, options?: DurationRelativeToOptions): number;
|
|
2957
|
+
}
|
|
2958
|
+
var Duration: DurationConstructor;
|
|
2959
|
+
|
|
2960
|
+
interface InstantToStringOptions extends PlainTimeToStringOptions {
|
|
2961
|
+
timeZone?: TimeZoneLike | undefined;
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
interface Instant {
|
|
2965
|
+
readonly epochMilliseconds: number;
|
|
2966
|
+
readonly epochNanoseconds: bigint;
|
|
2967
|
+
add(duration: DurationLike): Instant;
|
|
2968
|
+
subtract(duration: DurationLike): Instant;
|
|
2969
|
+
until(other: InstantLike, options?: RoundingOptionsWithLargestUnit<TimeUnit>): Duration;
|
|
2970
|
+
since(other: InstantLike, options?: RoundingOptionsWithLargestUnit<TimeUnit>): Duration;
|
|
2971
|
+
round(roundTo: PluralizeUnit<TimeUnit>): Instant;
|
|
2972
|
+
round(roundTo: RoundingOptions<TimeUnit>): Instant;
|
|
2973
|
+
equals(other: InstantLike): boolean;
|
|
2974
|
+
toString(options?: InstantToStringOptions): string;
|
|
2975
|
+
toLocaleString(locales?: string | string[], options?: any): string;
|
|
2976
|
+
toJSON(): string;
|
|
2977
|
+
valueOf(): never;
|
|
2978
|
+
toZonedDateTimeISO(timeZone: TimeZoneLike): ZonedDateTime;
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
interface InstantConstructor {
|
|
2982
|
+
new (epochNanoseconds: bigint): Instant;
|
|
2983
|
+
readonly prototype: Instant;
|
|
2984
|
+
from(item: InstantLike): Instant;
|
|
2985
|
+
fromEpochMilliseconds(epochMilliseconds: number): Instant;
|
|
2986
|
+
fromEpochNanoseconds(epochNanoseconds: bigint): Instant;
|
|
2987
|
+
compare(one: InstantLike, two: InstantLike): number;
|
|
2988
|
+
}
|
|
2989
|
+
var Instant: InstantConstructor;
|
|
2990
|
+
|
|
2991
|
+
interface PlainYearMonthToPlainDateOptions {
|
|
2992
|
+
day: number;
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
interface PlainYearMonth {
|
|
2996
|
+
readonly calendarId: string;
|
|
2997
|
+
readonly era: string | undefined;
|
|
2998
|
+
readonly eraYear: number | undefined;
|
|
2999
|
+
readonly year: number;
|
|
3000
|
+
readonly month: number;
|
|
3001
|
+
readonly monthCode: string;
|
|
3002
|
+
readonly daysInYear: number;
|
|
3003
|
+
readonly daysInMonth: number;
|
|
3004
|
+
readonly monthsInYear: number;
|
|
3005
|
+
readonly inLeapYear: boolean;
|
|
3006
|
+
with(yearMonthLike: PartialTemporalLike<YearMonthLikeObject>, options?: OverflowOptions): PlainYearMonth;
|
|
3007
|
+
add(duration: DurationLike, options?: OverflowOptions): PlainYearMonth;
|
|
3008
|
+
subtract(duration: DurationLike, options?: OverflowOptions): PlainYearMonth;
|
|
3009
|
+
until(other: PlainYearMonthLike, options?: RoundingOptionsWithLargestUnit<"year" | "month">): Duration;
|
|
3010
|
+
since(other: PlainYearMonthLike, options?: RoundingOptionsWithLargestUnit<"year" | "month">): Duration;
|
|
3011
|
+
equals(other: PlainYearMonthLike): boolean;
|
|
3012
|
+
toString(options?: PlainDateToStringOptions): string;
|
|
3013
|
+
toLocaleString(locales?: string | string[], options?: any): string;
|
|
3014
|
+
toJSON(): string;
|
|
3015
|
+
valueOf(): never;
|
|
3016
|
+
toPlainDate(item: PlainYearMonthToPlainDateOptions): PlainDate;
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
interface PlainYearMonthConstructor {
|
|
3020
|
+
new (isoYear: number, isoMonth: number, calendar?: string, referenceISODay?: number): PlainYearMonth;
|
|
3021
|
+
readonly prototype: PlainYearMonth;
|
|
3022
|
+
from(item: PlainYearMonthLike, options?: OverflowOptions): PlainYearMonth;
|
|
3023
|
+
compare(one: PlainYearMonthLike, two: PlainYearMonthLike): number;
|
|
3024
|
+
}
|
|
3025
|
+
var PlainYearMonth: PlainYearMonthConstructor;
|
|
3026
|
+
|
|
3027
|
+
interface PlainMonthDayToPlainDateOptions {
|
|
3028
|
+
era?: string | undefined;
|
|
3029
|
+
eraYear?: number | undefined;
|
|
3030
|
+
year?: number | undefined;
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
interface PlainMonthDay {
|
|
3034
|
+
readonly calendarId: string;
|
|
3035
|
+
readonly monthCode: string;
|
|
3036
|
+
readonly day: number;
|
|
3037
|
+
with(monthDayLike: PartialTemporalLike<DateLikeObject>, options?: OverflowOptions): PlainMonthDay;
|
|
3038
|
+
equals(other: PlainMonthDayLike): boolean;
|
|
3039
|
+
toString(options?: PlainDateToStringOptions): string;
|
|
3040
|
+
toLocaleString(locales?: string | string[], options?: any): string;
|
|
3041
|
+
toJSON(): string;
|
|
3042
|
+
valueOf(): never;
|
|
3043
|
+
toPlainDate(item: PlainMonthDayToPlainDateOptions): PlainDate;
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
interface PlainMonthDayConstructor {
|
|
3047
|
+
new (isoMonth: number, isoDay: number, calendar?: string, referenceISOYear?: number): PlainMonthDay;
|
|
3048
|
+
readonly prototype: PlainMonthDay;
|
|
3049
|
+
from(item: PlainMonthDayLike, options?: OverflowOptions): PlainMonthDay;
|
|
3050
|
+
}
|
|
3051
|
+
var PlainMonthDay: PlainMonthDayConstructor;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
interface Date {
|
|
3055
|
+
/** An Instant at the same epoch time */
|
|
3056
|
+
toTemporalInstant(): Temporal.Instant;
|
|
3057
|
+
}
|