diff --git a/Makefile b/Makefile index 15f1e3ae99a318..679db71f2d6795 100644 --- a/Makefile +++ b/Makefile @@ -1392,7 +1392,7 @@ format-md: tools/lint-md/node_modules/remark-parse/package.json ## Format the ma -LINT_JS_TARGETS = eslint.config.mjs benchmark doc lib test tools +LINT_JS_TARGETS = eslint.config.mjs benchmark doc lib test tools typings run-lint-js = tools/eslint/node_modules/eslint/bin/eslint.js --cache \ --max-warnings=0 --report-unused-disable-directives $(LINT_JS_TARGETS) diff --git a/benchmark/eslint.config_partial.mjs b/benchmark/eslint.config_partial.mjs index 7f10460f71971b..18278d3196ddf0 100644 --- a/benchmark/eslint.config_partial.mjs +++ b/benchmark/eslint.config_partial.mjs @@ -2,7 +2,7 @@ import { globals } from '../tools/eslint/eslint.config_utils.mjs'; export default [ { - files: ['benchmark/**/*.{js,mjs,cjs}'], + files: ['benchmark/**/*.{js,mjs,cjs,ts,mts,cts}'], languageOptions: { globals: { ...globals.node, diff --git a/doc/api/typescript.md b/doc/api/typescript.md index ff111dc6885ff0..cf4e9f5ff84194 100644 --- a/doc/api/typescript.md +++ b/doc/api/typescript.md @@ -147,7 +147,7 @@ This will result in [`ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX`][] error: ```ts // This namespace is exporting a value namespace A { - export let x = 1 + export const x = 1; } ``` diff --git a/doc/eslint.config_partial.mjs b/doc/eslint.config_partial.mjs index ce914fbad1e302..bf2f300804fa01 100644 --- a/doc/eslint.config_partial.mjs +++ b/doc/eslint.config_partial.mjs @@ -9,7 +9,7 @@ const builtin = builtinModules.filter((name) => !name.startsWith('node:')); export default [ { - files: ['doc/**/*.md/*.{js,mjs,cjs}'], + files: ['doc/**/*.md/*.{js,mjs,cjs,ts,cts,mts}'], rules: { // Ease some restrictions in doc examples. 'no-restricted-properties': 'off', @@ -22,6 +22,13 @@ export default [ message: 'Use `node:` prefix.', }, ], + + // Typescript rules + '@typescript-eslint/no-unused-expressions': 'off', + '@typescript-eslint/no-unused-vars': 'off', + // Removed since it is used on how not to use examples. + '@typescript-eslint/no-namespace': 'off', + 'no-undef': 'off', 'no-unused-expressions': 'off', 'no-unused-vars': 'off', diff --git a/eslint.config.mjs b/eslint.config.mjs index cc1cfa751ab986..e48f53f93c44fc 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -23,6 +23,7 @@ const babelPluginSyntaxImportSource = resolveEslintTool('@babel/plugin-syntax-im const { default: jsdoc } = await importEslintTool('eslint-plugin-jsdoc'); const { default: markdown } = await importEslintTool('eslint-plugin-markdown'); const { default: stylisticJs } = await importEslintTool('@stylistic/eslint-plugin-js'); +const { default: tseslint } = await importEslintTool('typescript-eslint'); nodeCore.RULES_DIR = fileURLToPath(new URL('./tools/eslint-rules', import.meta.url)); @@ -86,7 +87,7 @@ export default [ js.configs.recommended, jsdoc.configs['flat/recommended'], { - files: ['**/*.{js,cjs}'], + files: ['**/*.{js,cjs,ts,cts}'], languageOptions: { // The default is `commonjs` but it's not supported by the Babel parser. sourceType: 'script', @@ -352,7 +353,7 @@ export default [ processor: 'markdown/markdown', }, { - files: ['**/*.md/*.{js,cjs}'], + files: ['**/*.md/*.{js,cjs,ts,cts}'], languageOptions: { parserOptions: { ecmaFeatures: { impliedStrict: true }, @@ -369,38 +370,67 @@ export default [ languageOptions: { sourceType: 'module', }, - rules: { 'no-restricted-globals': [ - 'error', - { - name: '__filename', - message: 'Use import.meta.url instead.', - }, - { - name: '__dirname', - message: 'Not available in ESM.', - }, - { - name: 'exports', - message: 'Not available in ESM.', - }, - { - name: 'module', - message: 'Not available in ESM.', - }, - { - name: 'require', - message: 'Use import instead.', - }, - { - name: 'Buffer', - message: "Import 'Buffer' instead of using the global.", - }, - { - name: 'process', - message: "Import 'process' instead of using the global.", - }, - ] }, + rules: { + 'no-restricted-globals': [ + 'error', + { + name: '__filename', + message: 'Use import.meta.url instead.', + }, + { + name: '__dirname', + message: 'Not available in ESM.', + }, + { + name: 'exports', + message: 'Not available in ESM.', + }, + { + name: 'module', + message: 'Not available in ESM.', + }, + { + name: 'require', + message: 'Use import instead.', + }, + { + name: 'Buffer', + message: "Import 'Buffer' instead of using the global.", + }, + { + name: 'process', + message: "Import 'process' instead of using the global.", + }, + ], + }, + }, + // #region Typescript rules + { + + files: ['**/*.{ts,mts,cts}'], + ...tseslint.configs.base, + rules: { + ...tseslint.configs.eslintRecommended.rules, + // Index 0 contains the base configuration, + // index 1 provides eslint-specific overrides, + // and index 2 includes the recommended rules. + ...tseslint.configs.recommended[2].rules, + // This is handled by 'no-restricted-globals' + '@typescript-eslint/no-require-imports': 'off', + // We use ignore comments throughout the codebase + '@typescript-eslint/ban-ts-comment': 'off', + }, }, + { + files: ['typings/**'], + rules: { + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-empty-object-type': 'off', + + 'no-use-before-define': 'off', + }, + }, + // #endregion // #endregion // #region partials ...benchmarkConfig, diff --git a/test/eslint.config_partial.mjs b/test/eslint.config_partial.mjs index 418b2d0c3c8fdc..39f95d21e1e175 100644 --- a/test/eslint.config_partial.mjs +++ b/test/eslint.config_partial.mjs @@ -7,7 +7,10 @@ import { export default [ { - files: ['test/**/*.{js,mjs,cjs}'], + ignores: ['test/fixtures/**/*.{ts,mts,cts}'], + }, + { + files: ['test/**/*.{js,mjs,cjs,ts,mts,cts}'], languageOptions: { globals: { ...globals.node, @@ -120,9 +123,9 @@ export default [ }, { files: [ - 'test/es-module/**/*.{js,mjs}', - 'test/parallel/**/*.{js,mjs}', - 'test/sequential/**/*.{js,mjs}', + 'test/es-module/**/*.{js,mjs,ts,mts,cts}', + 'test/parallel/**/*.{js,mjs,ts,mts,cts}', + 'test/sequential/**/*.{js,mjs,ts,mts,cts}', ], rules: { '@stylistic/js/comma-dangle': [ @@ -147,6 +150,15 @@ export default [ 'node-core/require-common-first': 'off', }, }, + { + files: [ + 'test/{common,wpt}/**/*.{ts,mts,cts}', + ], + rules: { + 'node-core/required-modules': 'off', + 'node-core/require-common-first': 'off', + }, + }, { files: [ 'test/es-module/test-esm-example-loader.js', diff --git a/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts b/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts index 718f617928d5ce..76cf24bf5ca670 100644 --- a/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts +++ b/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts @@ -4,8 +4,8 @@ import '../../../common/index.mjs'; interface Foo { /** line - * - * blocks */ + * + * blocks */ } async function Throw() { diff --git a/test/fixtures/source-map/output/source_map_throw_construct.mts b/test/fixtures/source-map/output/source_map_throw_construct.mts index 38f2dee88a652e..d30a07c39af587 100644 --- a/test/fixtures/source-map/output/source_map_throw_construct.mts +++ b/test/fixtures/source-map/output/source_map_throw_construct.mts @@ -3,9 +3,9 @@ import '../../../common/index.mjs'; interface Block { - /** line - * - * blocks */ + /* line + * + * blocks */ } class Foo { diff --git a/tools/eslint/eslint.config_partial.mjs b/tools/eslint/eslint.config_partial.mjs index 0398d73a0195cd..350b1b76904933 100644 --- a/tools/eslint/eslint.config_partial.mjs +++ b/tools/eslint/eslint.config_partial.mjs @@ -2,7 +2,7 @@ import { globals } from './eslint.config_utils.mjs'; export default [ { - files: ['tools/**/*.{js,mjs,cjs}'], + files: ['tools/**/*.{js,mjs,cjs,ts,mts,cts}'], languageOptions: { globals: { ...globals.node, diff --git a/tools/eslint/package-lock.json b/tools/eslint/package-lock.json index 2447e83cf532c6..2081e6c94fdcfa 100644 --- a/tools/eslint/package-lock.json +++ b/tools/eslint/package-lock.json @@ -17,7 +17,8 @@ "eslint-formatter-tap": "^8.40.0", "eslint-plugin-jsdoc": "^50.6.11", "eslint-plugin-markdown": "^5.1.0", - "globals": "^16.0.0" + "globals": "^16.0.0", + "typescript-eslint": "^8.32.0" } }, "node_modules/@ampproject/remapping": { @@ -328,16 +329,19 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", + "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.3" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, + "funding": { + "url": "https://opencollective.com/eslint" + }, "peerDependencies": { "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } @@ -578,6 +582,41 @@ "eslint-scope": "5.1.1" } }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@stylistic/eslint-plugin-js": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-js/-/eslint-plugin-js-4.2.0.tgz", @@ -631,6 +670,226 @@ "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==", "license": "MIT" }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.32.0.tgz", + "integrity": "sha512-/jU9ettcntkBFmWUzzGgsClEi2ZFiikMX5eEQsmxIAWMOn4H3D4rvHssstmAHGVvrYnaMqdWWWg0b5M6IN/MTQ==", + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.32.0", + "@typescript-eslint/type-utils": "8.32.0", + "@typescript-eslint/utils": "8.32.0", + "@typescript-eslint/visitor-keys": "8.32.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.32.0.tgz", + "integrity": "sha512-B2MdzyWxCE2+SqiZHAjPphft+/2x2FlO9YBx7eKE1BCb+rqBlQdhtAEhzIEdozHd55DXPmxBdpMygFJjfjjA9A==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.32.0", + "@typescript-eslint/types": "8.32.0", + "@typescript-eslint/typescript-estree": "8.32.0", + "@typescript-eslint/visitor-keys": "8.32.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.32.0.tgz", + "integrity": "sha512-jc/4IxGNedXkmG4mx4nJTILb6TMjL66D41vyeaPWvDUmeYQzF3lKtN15WsAeTr65ce4mPxwopPSo1yUUAWw0hQ==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.32.0", + "@typescript-eslint/visitor-keys": "8.32.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.32.0.tgz", + "integrity": "sha512-t2vouuYQKEKSLtJaa5bB4jHeha2HJczQ6E5IXPDPgIty9EqcJxpr1QHQ86YyIPwDwxvUmLfP2YADQ5ZY4qddZg==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "8.32.0", + "@typescript-eslint/utils": "8.32.0", + "debug": "^4.3.4", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.32.0.tgz", + "integrity": "sha512-O5Id6tGadAZEMThM6L9HmVf5hQUXNSxLVKeGJYWNhhVseps/0LddMkp7//VDkzwJ69lPL0UmZdcZwggj9akJaA==", + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.32.0.tgz", + "integrity": "sha512-pU9VD7anSCOIoBFnhTGfOzlVFQIA1XXiQpH/CezqOBaDppRwTglJzCC6fUQGpfwey4T183NKhF1/mfatYmjRqQ==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.32.0", + "@typescript-eslint/visitor-keys": "8.32.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.32.0.tgz", + "integrity": "sha512-8S9hXau6nQ/sYVtC3D6ISIDoJzS1NsCK+gluVhLN2YkBPX+/1wkwyUiDKnxRh15579WoOIyVWnoyIf3yGI9REw==", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.32.0", + "@typescript-eslint/types": "8.32.0", + "@typescript-eslint/typescript-estree": "8.32.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.32.0.tgz", + "integrity": "sha512-1rYQTCLFFzOI5Nl0c8LUpJT8HxpwVRn9E4CkMsYfuN6ctmQqExjSTzzSk0Tz2apmXy7WU6/6fyaZVVA/thPN+w==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.32.0", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/acorn": { "version": "8.14.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", @@ -713,6 +972,18 @@ "concat-map": "0.0.1" } }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/browserslist": { "version": "4.24.4", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", @@ -1207,6 +1478,34 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "license": "MIT" }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -1219,6 +1518,15 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "license": "MIT" }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, "node_modules/file-entry-cache": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", @@ -1231,6 +1539,18 @@ "node": ">=16.0.0" } }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -1299,6 +1619,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "license": "MIT" + }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -1407,6 +1733,15 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -1559,6 +1894,15 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, "node_modules/micromark": { "version": "2.11.4", "resolved": "https://registry.npmjs.org/micromark/-/micromark-2.11.4.tgz", @@ -1579,6 +1923,19 @@ "parse-entities": "^2.0.0" } }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -1724,6 +2081,18 @@ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "license": "ISC" }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -1742,6 +2111,26 @@ "node": ">=6" } }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -1751,6 +2140,39 @@ "node": ">=4" } }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -1825,6 +2247,30 @@ "node": ">=8" } }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -1837,6 +2283,42 @@ "node": ">= 0.8.0" } }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.32.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.32.0.tgz", + "integrity": "sha512-UMq2kxdXCzinFFPsXc9o2ozIpYCCOiEC46MG3yEh5Vipq6BO27otTtEBZA1fQ66DulEUgE97ucQ/3YY66CPg0A==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.32.0", + "@typescript-eslint/parser": "8.32.0", + "@typescript-eslint/utils": "8.32.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, "node_modules/unist-util-stringify-position": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", diff --git a/tools/eslint/package.json b/tools/eslint/package.json index d0fbd7d433cc8a..1f07d3e71ab76e 100644 --- a/tools/eslint/package.json +++ b/tools/eslint/package.json @@ -12,6 +12,7 @@ "eslint-formatter-tap": "^8.40.0", "eslint-plugin-jsdoc": "^50.6.11", "eslint-plugin-markdown": "^5.1.0", - "globals": "^16.0.0" + "globals": "^16.0.0", + "typescript-eslint": "^8.32.0" } } diff --git a/typings/globals.d.ts b/typings/globals.d.ts index 3730a56da2987c..9192b8dfc02b16 100644 --- a/typings/globals.d.ts +++ b/typings/globals.d.ts @@ -15,7 +15,7 @@ import { SymbolsBinding } from './internalBinding/symbols'; import { TimersBinding } from './internalBinding/timers'; import { TypesBinding } from './internalBinding/types'; import { URLBinding } from './internalBinding/url'; -import { URLPatternBinding } from "./internalBinding/url_pattern"; +import { URLPatternBinding } from './internalBinding/url_pattern'; import { UtilBinding } from './internalBinding/util'; import { WASIBinding } from './internalBinding/wasi'; import { WorkerBinding } from './internalBinding/worker'; diff --git a/typings/internalBinding/blob.d.ts b/typings/internalBinding/blob.d.ts index 5396c863bb5e59..2b4958b0112913 100644 --- a/typings/internalBinding/blob.d.ts +++ b/typings/internalBinding/blob.d.ts @@ -11,9 +11,11 @@ declare namespace InternalBlobBinding { } export interface BlobBinding { - createBlob(sources: Array, length: number): InternalBlobBinding.BlobHandle; + createBlob(sources: Array, + length: number): InternalBlobBinding.BlobHandle; FixedSizeBlobCopyJob: typeof InternalBlobBinding.FixedSizeBlobCopyJob; - getDataObject(id: string): [handle: InternalBlobBinding.BlobHandle | undefined, length: number, type: string] | undefined; + getDataObject(id: string): + [handle: InternalBlobBinding.BlobHandle | undefined, length: number, type: string] | undefined; storeDataObject(id: string, handle: InternalBlobBinding.BlobHandle, size: number, type: string): void; revokeDataObject(id: string): void; } diff --git a/typings/internalBinding/constants.d.ts b/typings/internalBinding/constants.d.ts index dc4657080ba54b..58404b63053ec5 100644 --- a/typings/internalBinding/constants.d.ts +++ b/typings/internalBinding/constants.d.ts @@ -243,6 +243,7 @@ export interface ConstantsBinding { RSA_PSS_SALTLEN_DIGEST: -1; RSA_PSS_SALTLEN_MAX_SIGN: -2; RSA_PSS_SALTLEN_AUTO: -2; + /* eslint-disable @stylistic/js/max-len */ defaultCoreCipherList: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA'; TLS1_VERSION: 769; TLS1_1_VERSION: 770; diff --git a/typings/internalBinding/fs.d.ts b/typings/internalBinding/fs.d.ts index 7e3f03de22d026..dc381a86bb9e96 100644 --- a/typings/internalBinding/fs.d.ts +++ b/typings/internalBinding/fs.d.ts @@ -74,7 +74,10 @@ declare namespace InternalFSBinding { function copyFile(src: StringOrBuffer, dest: StringOrBuffer, mode: number, req: FSReqCallback): void; function copyFile(src: StringOrBuffer, dest: StringOrBuffer, mode: number, req: undefined, ctx: FSSyncContext): void; - function copyFile(src: StringOrBuffer, dest: StringOrBuffer, mode: number, usePromises: typeof kUsePromises): Promise; + function copyFile(src: StringOrBuffer, + dest: StringOrBuffer, + mode: number, + usePromises: typeof kUsePromises): Promise; function cpSyncCheckPaths(src: StringOrBuffer, dest: StringOrBuffer, dereference: boolean, recursive: boolean): void; @@ -94,10 +97,15 @@ declare namespace InternalFSBinding { function fstat(fd: number, useBigint: boolean, req: FSReqCallback): void; function fstat(fd: number, useBigint: true, req: FSReqCallback): void; function fstat(fd: number, useBigint: false, req: FSReqCallback): void; - function fstat(fd: number, useBigint: boolean, req: undefined, shouldNotThrow: boolean): Float64Array | BigUint64Array; + function fstat(fd: number, + useBigint: boolean, + req: undefined, + shouldNotThrow: boolean): Float64Array | BigUint64Array; function fstat(fd: number, useBigint: true, req: undefined, shouldNotThrow: boolean): BigUint64Array; function fstat(fd: number, useBigint: false, req: undefined, shouldNotThrow: boolean): Float64Array; - function fstat(fd: number, useBigint: boolean, usePromises: typeof kUsePromises): Promise; + function fstat(fd: number, + useBigint: boolean, + usePromises: typeof kUsePromises): Promise; function fstat(fd: number, useBigint: true, usePromises: typeof kUsePromises): Promise; function fstat(fd: number, useBigint: false, usePromises: typeof kUsePromises): Promise; @@ -128,10 +136,15 @@ declare namespace InternalFSBinding { function lstat(path: StringOrBuffer, useBigint: boolean, req: FSReqCallback): void; function lstat(path: StringOrBuffer, useBigint: true, req: FSReqCallback): void; function lstat(path: StringOrBuffer, useBigint: false, req: FSReqCallback): void; - function lstat(path: StringOrBuffer, useBigint: boolean, req: undefined, throwIfNoEntry: boolean): Float64Array | BigUint64Array; + function lstat(path: StringOrBuffer, + useBigint: boolean, + req: undefined, + throwIfNoEntry: boolean): Float64Array | BigUint64Array; function lstat(path: StringOrBuffer, useBigint: true, req: undefined, throwIfNoEntry: boolean): BigUint64Array; function lstat(path: StringOrBuffer, useBigint: false, req: undefined, throwIfNoEntry: boolean): Float64Array; - function lstat(path: StringOrBuffer, useBigint: boolean, usePromises: typeof kUsePromises): Promise; + function lstat(path: StringOrBuffer, + useBigint: boolean, + usePromises: typeof kUsePromises): Promise; function lstat(path: StringOrBuffer, useBigint: true, usePromises: typeof kUsePromises): Promise; function lstat(path: StringOrBuffer, useBigint: false, usePromises: typeof kUsePromises): Promise; @@ -150,43 +163,89 @@ declare namespace InternalFSBinding { function mkdir(path: string, mode: number, recursive: boolean): void | string; function mkdir(path: string, mode: number, recursive: true): string; function mkdir(path: string, mode: number, recursive: false): void; - function mkdir(path: string, mode: number, recursive: boolean, usePromises: typeof kUsePromises): Promise; + function mkdir(path: string, + mode: number, + recursive: boolean, + usePromises: typeof kUsePromises): Promise; function mkdir(path: string, mode: number, recursive: true, usePromises: typeof kUsePromises): Promise; function mkdir(path: string, mode: number, recursive: false, usePromises: typeof kUsePromises): Promise; function open(path: StringOrBuffer, flags: number, mode: number, req: FSReqCallback): void; function open(path: StringOrBuffer, flags: number, mode: number): number; - function openFileHandle(path: StringOrBuffer, flags: number, mode: number, usePromises: typeof kUsePromises): Promise; - - function read(fd: number, buffer: ArrayBufferView, offset: number, length: number, position: number, req: FSReqCallback): void; - function read(fd: number, buffer: ArrayBufferView, offset: number, length: number, position: number, usePromises: typeof kUsePromises): Promise; + function openFileHandle(path: StringOrBuffer, + flags: number, + mode: number, + usePromises: typeof kUsePromises): Promise; + + function read(fd: number, + buffer: ArrayBufferView, + offset: number, + length: number, + position: number, + req: FSReqCallback): void; + function read(fd: number, + buffer: ArrayBufferView, + offset: number, + length: number, + position: number, + usePromises: typeof kUsePromises): Promise; function read(fd: number, buffer: ArrayBufferView, offset: number, length: number, position: number): number; function readBuffers(fd: number, buffers: ArrayBufferView[], position: number, req: FSReqCallback): void; - function readBuffers(fd: number, buffers: ArrayBufferView[], position: number, req: undefined, ctx: FSSyncContext): number; - function readBuffers(fd: number, buffers: ArrayBufferView[], position: number, usePromises: typeof kUsePromises): Promise; - - function readdir(path: StringOrBuffer, encoding: unknown, withFileTypes: boolean, req: FSReqCallback): void; - function readdir(path: StringOrBuffer, encoding: unknown, withFileTypes: true, req: FSReqCallback<[string[], number[]]>): void; + function readBuffers(fd: number, + buffers: ArrayBufferView[], + position: number, + req: undefined, + ctx: FSSyncContext): number; + function readBuffers(fd: number, + buffers: ArrayBufferView[], + position: number, + usePromises: typeof kUsePromises): Promise; + + function readdir(path: StringOrBuffer, + encoding: unknown, + withFileTypes: boolean, + req: FSReqCallback): void; + function readdir(path: StringOrBuffer, + encoding: unknown, + withFileTypes: true, + req: FSReqCallback<[string[], number[]]>): void; function readdir(path: StringOrBuffer, encoding: unknown, withFileTypes: false, req: FSReqCallback): void; - function readdir(path: StringOrBuffer, encoding: unknown, withFileTypes: boolean, req: undefined, ctx: FSSyncContext): string[] | [string[], number[]]; + function readdir(path: StringOrBuffer, + encoding: unknown, + withFileTypes: boolean, + req: undefined, + ctx: FSSyncContext): string[] | [string[], number[]]; function readdir(path: StringOrBuffer, encoding: unknown, withFileTypes: true): [string[], number[]]; function readdir(path: StringOrBuffer, encoding: unknown, withFileTypes: false): string[]; - function readdir(path: StringOrBuffer, encoding: unknown, withFileTypes: boolean, usePromises: typeof kUsePromises): Promise; - function readdir(path: StringOrBuffer, encoding: unknown, withFileTypes: true, usePromises: typeof kUsePromises): Promise<[string[], number[]]>; - function readdir(path: StringOrBuffer, encoding: unknown, withFileTypes: false, usePromises: typeof kUsePromises): Promise; + function readdir(path: StringOrBuffer, + encoding: unknown, + withFileTypes: boolean, + usePromises: typeof kUsePromises): Promise; + function readdir(path: StringOrBuffer, + encoding: unknown, + withFileTypes: true, + usePromises: typeof kUsePromises): Promise<[string[], number[]]>; + function readdir(path: StringOrBuffer, + encoding: unknown, + withFileTypes: false, + usePromises: typeof kUsePromises): Promise; function readFileUtf8(path: StringOrBuffer, flags: number): string; function readlink(path: StringOrBuffer, encoding: unknown, req: FSReqCallback): void; function readlink(path: StringOrBuffer, encoding: unknown, req: undefined, ctx: FSSyncContext): string | Buffer; - function readlink(path: StringOrBuffer, encoding: unknown, usePromises: typeof kUsePromises): Promise; + function readlink(path: StringOrBuffer, + encoding: unknown, + usePromises: typeof kUsePromises): Promise; function readlink(path: StringOrBuffer, encoding: unknown): StringOrBuffer; function realpath(path: StringOrBuffer, encoding: unknown, req: FSReqCallback): void; function realpath(path: StringOrBuffer, encoding: unknown, req: undefined, ctx: FSSyncContext): string | Buffer; - function realpath(path: StringOrBuffer, encoding: unknown, usePromises: typeof kUsePromises): Promise; + function realpath(path: StringOrBuffer, + encoding: unknown, + usePromises: typeof kUsePromises): Promise; function realpath(path: StringOrBuffer, encoding: unknown): StringOrBuffer; function rename(oldPath: string, newPath: string, req: FSReqCallback): void; @@ -203,16 +262,28 @@ declare namespace InternalFSBinding { function stat(path: StringOrBuffer, useBigint: boolean, req: FSReqCallback): void; function stat(path: StringOrBuffer, useBigint: true, req: FSReqCallback): void; function stat(path: StringOrBuffer, useBigint: false, req: FSReqCallback): void; - function stat(path: StringOrBuffer, useBigint: boolean, req: undefined, ctx: FSSyncContext): Float64Array | BigUint64Array; + function stat(path: StringOrBuffer, + useBigint: boolean, + req: undefined, + ctx: FSSyncContext): Float64Array | BigUint64Array; function stat(path: StringOrBuffer, useBigint: true, req: undefined, ctx: FSSyncContext): BigUint64Array; function stat(path: StringOrBuffer, useBigint: false, req: undefined, ctx: FSSyncContext): Float64Array; - function stat(path: StringOrBuffer, useBigint: boolean, usePromises: typeof kUsePromises): Promise; + function stat(path: StringOrBuffer, + useBigint: boolean, + usePromises: typeof kUsePromises): Promise; function stat(path: StringOrBuffer, useBigint: true, usePromises: typeof kUsePromises): Promise; function stat(path: StringOrBuffer, useBigint: false, usePromises: typeof kUsePromises): Promise; function symlink(target: StringOrBuffer, path: StringOrBuffer, type: number, req: FSReqCallback): void; - function symlink(target: StringOrBuffer, path: StringOrBuffer, type: number, req: undefined, ctx: FSSyncContext): void; - function symlink(target: StringOrBuffer, path: StringOrBuffer, type: number, usePromises: typeof kUsePromises): Promise; + function symlink(target: StringOrBuffer, + path: StringOrBuffer, + type: number, + req: undefined, + ctx: FSSyncContext): void; + function symlink(target: StringOrBuffer, + path: StringOrBuffer, + type: number, + usePromises: typeof kUsePromises): Promise; function symlink(target: StringOrBuffer, path: StringOrBuffer, type: number): void; function unlink(path: string, req: FSReqCallback): void; @@ -223,17 +294,51 @@ declare namespace InternalFSBinding { function utimes(path: string, atime: number, mtime: number): void; function utimes(path: string, atime: number, mtime: number, usePromises: typeof kUsePromises): Promise; - function writeBuffer(fd: number, buffer: ArrayBufferView, offset: number, length: number, position: number | null, req: FSReqCallback): void; - function writeBuffer(fd: number, buffer: ArrayBufferView, offset: number, length: number, position: number | null, req: undefined, ctx: FSSyncContext): number; - function writeBuffer(fd: number, buffer: ArrayBufferView, offset: number, length: number, position: number | null, usePromises: typeof kUsePromises): Promise; - - function writeBuffers(fd: number, buffers: ArrayBufferView[], position: number, req: FSReqCallback): void; - function writeBuffers(fd: number, buffers: ArrayBufferView[], position: number, req: undefined, ctx: FSSyncContext): number; - function writeBuffers(fd: number, buffers: ArrayBufferView[], position: number, usePromises: typeof kUsePromises): Promise; + function writeBuffer(fd: number, + buffer: ArrayBufferView, + offset: number, + length: number, + position: number | null, + req: FSReqCallback): void; + function writeBuffer(fd: number, + buffer: ArrayBufferView, + offset: number, + length: number, + position: number | null, + req: undefined, + ctx: FSSyncContext): number; + function writeBuffer(fd: number, + buffer: ArrayBufferView, + offset: number, length: number, + position: number | null, + usePromises: typeof kUsePromises): Promise; + + function writeBuffers(fd: number, + buffers: ArrayBufferView[], + position: number, + req: FSReqCallback): void; + function writeBuffers(fd: number, + buffers: ArrayBufferView[], + position: number, + req: undefined, + ctx: FSSyncContext): number; + function writeBuffers(fd: number, + buffers: ArrayBufferView[], + position: number, + usePromises: typeof kUsePromises): Promise; function writeString(fd: number, value: string, pos: unknown, encoding: unknown, req: FSReqCallback): void; - function writeString(fd: number, value: string, pos: unknown, encoding: unknown, req: undefined, ctx: FSSyncContext): number; - function writeString(fd: number, value: string, pos: unknown, encoding: unknown, usePromises: typeof kUsePromises): Promise; + function writeString(fd: number, + value: string, + pos: unknown, + encoding: unknown, + req: undefined, + ctx: FSSyncContext): number; + function writeString(fd: number, + value: string, + pos: unknown, + encoding: unknown, + usePromises: typeof kUsePromises): Promise; function getFormatOfExtensionlessFile(url: string): ConstantsBinding['fs']; diff --git a/typings/internalBinding/messaging.d.ts b/typings/internalBinding/messaging.d.ts index 93a1a050887503..eb8a037e277a48 100644 --- a/typings/internalBinding/messaging.d.ts +++ b/typings/internalBinding/messaging.d.ts @@ -26,7 +26,8 @@ export interface MessagingBinding { checkMessagePort(port: unknown): boolean; drainMessagePort(port: typeof InternalMessagingBinding.MessagePort): void; receiveMessageOnPort(port: typeof InternalMessagingBinding.MessagePort): any; - moveMessagePortToContext(port: typeof InternalMessagingBinding.MessagePort, context: any): typeof InternalMessagingBinding.MessagePort; + moveMessagePortToContext(port: typeof InternalMessagingBinding.MessagePort, + context: any): typeof InternalMessagingBinding.MessagePort; setDeserializerCreateObjectFunction(func: (deserializeInfo: string) => any): void; broadcastChannel(name: string): typeof InternalMessagingBinding.MessagePort; } diff --git a/typings/internalBinding/process.d.ts b/typings/internalBinding/process.d.ts index 99280fd43ba4d4..f6c73a93498e5c 100644 --- a/typings/internalBinding/process.d.ts +++ b/typings/internalBinding/process.d.ts @@ -1,4 +1,4 @@ -interface CpuUsageValue { +interface CpuUsageValue { user: number; system: number; } diff --git a/typings/internalBinding/quic.d.ts b/typings/internalBinding/quic.d.ts index 41acfba0bd438e..b093851145efa6 100644 --- a/typings/internalBinding/quic.d.ts +++ b/typings/internalBinding/quic.d.ts @@ -20,8 +20,8 @@ interface QuicCallbacks { supports: number[]) => void; onStreamCreated: (stream: Stream) => void; onStreamBlocked: () => void; - onStreamClose: (error: [number,bigint,string]) => void; - onStreamReset: (error: [number,bigint,string]) => void; + onStreamClose: (error: [number, bigint, string]) => void; + onStreamReset: (error: [number, bigint, string]) => void; onStreamHeaders: (headers: string[], kind: number) => void; onStreamTrailers: () => void; } diff --git a/typings/internalBinding/types.d.ts b/typings/internalBinding/types.d.ts index 0c0d3ec81b5aae..f1160d02affa7c 100644 --- a/typings/internalBinding/types.d.ts +++ b/typings/internalBinding/types.d.ts @@ -4,9 +4,9 @@ export interface TypesBinding { isAnyArrayBuffer(value: unknown): value is (ArrayBuffer | SharedArrayBuffer); isArrayBuffer(value: unknown): value is ArrayBuffer; isArgumentsObject(value: unknown): value is ArrayLike; - isBoxedPrimitive(value: unknown): value is (BigInt | Boolean | Number | String | Symbol); + isBoxedPrimitive(value: unknown): value is (bigint | boolean | number | string | symbol); isDataView(value: unknown): value is DataView; - isExternal(value: unknown): value is Object; + isExternal(value: unknown): value is object; isMap(value: unknown): value is Map; isMapIterator: (value: unknown) => value is IterableIterator; isModuleNamespaceObject: (value: unknown) => value is { [Symbol.toStringTag]: 'Module' }; @@ -19,8 +19,8 @@ export interface TypesBinding { isRegExp: (value: unknown) => RegExp; isDate: (value: unknown) => Date; isTypedArray: (value: unknown) => value is TypedArray; - isStringObject: (value: unknown) => value is String; - isNumberObject: (value: unknown) => value is Number; - isBooleanObject: (value: unknown) => value is Boolean, - isBigIntObject: (value: unknown) => value is BigInt; + isStringObject: (value: unknown) => value is string; + isNumberObject: (value: unknown) => value is number; + isBooleanObject: (value: unknown) => value is boolean, + isBigIntObject: (value: unknown) => value is bigint; } diff --git a/typings/internalBinding/url.d.ts b/typings/internalBinding/url.d.ts index b2e1a92ade9141..2e14d606b9e8c3 100644 --- a/typings/internalBinding/url.d.ts +++ b/typings/internalBinding/url.d.ts @@ -1,4 +1,4 @@ -import type { urlUpdateActions } from 'internal/url' +import type { urlUpdateActions } from 'internal/url'; export interface URLBinding { urlComponents: Uint32Array; diff --git a/typings/internalBinding/url_pattern.d.ts b/typings/internalBinding/url_pattern.d.ts index 516d34d5141f9e..0fad894f058849 100644 --- a/typings/internalBinding/url_pattern.d.ts +++ b/typings/internalBinding/url_pattern.d.ts @@ -1,12 +1,12 @@ export class URLPattern { - protocol: string - username: string - password: string - hostname: string - port: string - pathname: string - search: string - hash: string + protocol: string; + username: string; + password: string; + hostname: string; + port: string; + pathname: string; + search: string; + hash: string; constructor(input: Record | string, options?: { ignoreCase: boolean }); constructor(input: Record | string, baseUrl?: string, options?: { ignoreCase: boolean }); diff --git a/typings/internalBinding/util.d.ts b/typings/internalBinding/util.d.ts index 2cd52dc7b8f4b4..3a42c8b9dbc644 100644 --- a/typings/internalBinding/util.d.ts +++ b/typings/internalBinding/util.d.ts @@ -30,6 +30,7 @@ export interface UtilBinding { getConstructorName(object: object): string; getExternalValue(value: any): bigint; sleep(msec: number): void; + /* eslint-disable @typescript-eslint/no-unsafe-function-type */ isConstructor(fn: Function): boolean; arrayBufferViewHasBuffer(view: ArrayBufferView): boolean; propertyFilter: { diff --git a/typings/internalBinding/wasi.d.ts b/typings/internalBinding/wasi.d.ts index 5d1cc61b7114be..83a298d34e16c5 100644 --- a/typings/internalBinding/wasi.d.ts +++ b/typings/internalBinding/wasi.d.ts @@ -2,7 +2,10 @@ declare namespace InternalWASIBinding { type EnvStr = `${string}=${string}` class WASI { - constructor(args: string[], env: EnvStr[], preopens: string[], stdio: [stdin: number, stdout: number, stderr: number]) + constructor(args: string[], + env: EnvStr[], + preopens: string[], + stdio: [stdin: number, stdout: number, stderr: number]) _setMemory(memory: WebAssembly.Memory): void; } @@ -11,4 +14,3 @@ declare namespace InternalWASIBinding { export interface WASIBinding { WASI: typeof InternalWASIBinding.WASI; } - diff --git a/typings/internalBinding/zlib.d.ts b/typings/internalBinding/zlib.d.ts index 38506f501c4a05..4d0c214864d183 100644 --- a/typings/internalBinding/zlib.d.ts +++ b/typings/internalBinding/zlib.d.ts @@ -13,13 +13,31 @@ declare namespace InternalZlibBinding { reset(): void; close(): void; params(level: number, strategy: number): void; - write(flushFlag: number, input: TypedArray, inputOff: number, inputLen: number, out: TypedArray, outOff: number, outLen: number): void; - writeSync(flushFlag: number, input: TypedArray, inputOff: number, inputLen: number, out: TypedArray, outOff: number, outLen: number): void; + write(flushFlag: number, + input: TypedArray, + inputOff: number, + inputLen: number, + out: TypedArray, + outOff: number, + outLen: number): void; + writeSync(flushFlag: number, + input: TypedArray, + inputOff: number, + inputLen: number, + out: TypedArray, + outOff: number, + outLen: number): void; } - class Zlib extends ZlibBase{ + class Zlib extends ZlibBase { constructor(mode: number) - init(windowBits: number, level: number, memLevel: number, strategy: number, writeState: Uint32Array, callback: VoidFunction, dictionary: Uint32Array): number; + init(windowBits: number, + level: number, + memLevel: number, + strategy: number, + writeState: Uint32Array, + callback: VoidFunction, + dictionary: Uint32Array): number; } class BrotliDecoder extends ZlibBase { diff --git a/typings/primordials.d.ts b/typings/primordials.d.ts index c263bd9c4e243b..05ae421696c131 100644 --- a/typings/primordials.d.ts +++ b/typings/primordials.d.ts @@ -25,7 +25,6 @@ type TypedArrayContentType = T extends { [k: number]: infe * Primordials are a way to safely use globals without fear of global mutation * Generally, this means removing `this` parameter usage and instead using * a regular parameter: - * * @example * * ```js @@ -46,415 +45,416 @@ declare namespace primordials { export import decodeURIComponent = globalThis.decodeURIComponent; export import encodeURI = globalThis.encodeURI; export import encodeURIComponent = globalThis.encodeURIComponent; - export const JSONParse: typeof JSON.parse - export const JSONStringify: typeof JSON.stringify - export const MathAbs: typeof Math.abs - export const MathAcos: typeof Math.acos - export const MathAcosh: typeof Math.acosh - export const MathAsin: typeof Math.asin - export const MathAsinh: typeof Math.asinh - export const MathAtan: typeof Math.atan - export const MathAtanh: typeof Math.atanh - export const MathAtan2: typeof Math.atan2 - export const MathCeil: typeof Math.ceil - export const MathCbrt: typeof Math.cbrt - export const MathExpm1: typeof Math.expm1 - export const MathClz32: typeof Math.clz32 - export const MathCos: typeof Math.cos - export const MathCosh: typeof Math.cosh - export const MathExp: typeof Math.exp - export const MathFloor: typeof Math.floor - export const MathFround: typeof Math.fround - export const MathHypot: typeof Math.hypot - export const MathImul: typeof Math.imul - export const MathLog: typeof Math.log - export const MathLog1p: typeof Math.log1p - export const MathLog2: typeof Math.log2 - export const MathLog10: typeof Math.log10 - export const MathMax: typeof Math.max - export const MathMaxApply: StaticApply - export const MathMin: typeof Math.min - export const MathPow: typeof Math.pow - export const MathRandom: typeof Math.random - export const MathRound: typeof Math.round - export const MathSign: typeof Math.sign - export const MathSin: typeof Math.sin - export const MathSinh: typeof Math.sinh - export const MathSqrt: typeof Math.sqrt - export const MathTan: typeof Math.tan - export const MathTanh: typeof Math.tanh - export const MathTrunc: typeof Math.trunc - export const MathE: typeof Math.E - export const MathLN10: typeof Math.LN10 - export const MathLN2: typeof Math.LN2 - export const MathLOG10E: typeof Math.LOG10E - export const MathLOG2E: typeof Math.LOG2E - export const MathPI: typeof Math.PI - export const MathSQRT1_2: typeof Math.SQRT1_2 - export const MathSQRT2: typeof Math.SQRT2 - export const ReflectDefineProperty: typeof Reflect.defineProperty - export const ReflectDeleteProperty: typeof Reflect.deleteProperty - export const ReflectApply: typeof Reflect.apply - export const ReflectConstruct: typeof Reflect.construct - export const ReflectGet: typeof Reflect.get - export const ReflectGetOwnPropertyDescriptor: typeof Reflect.getOwnPropertyDescriptor - export const ReflectGetPrototypeOf: typeof Reflect.getPrototypeOf - export const ReflectHas: typeof Reflect.has - export const ReflectIsExtensible: typeof Reflect.isExtensible - export const ReflectOwnKeys: typeof Reflect.ownKeys - export const ReflectPreventExtensions: typeof Reflect.preventExtensions - export const ReflectSet: typeof Reflect.set - export const ReflectSetPrototypeOf: typeof Reflect.setPrototypeOf + export const JSONParse: typeof JSON.parse; + export const JSONStringify: typeof JSON.stringify; + export const MathAbs: typeof Math.abs; + export const MathAcos: typeof Math.acos; + export const MathAcosh: typeof Math.acosh; + export const MathAsin: typeof Math.asin; + export const MathAsinh: typeof Math.asinh; + export const MathAtan: typeof Math.atan; + export const MathAtanh: typeof Math.atanh; + export const MathAtan2: typeof Math.atan2; + export const MathCeil: typeof Math.ceil; + export const MathCbrt: typeof Math.cbrt; + export const MathExpm1: typeof Math.expm1; + export const MathClz32: typeof Math.clz32; + export const MathCos: typeof Math.cos; + export const MathCosh: typeof Math.cosh; + export const MathExp: typeof Math.exp; + export const MathFloor: typeof Math.floor; + export const MathFround: typeof Math.fround; + export const MathHypot: typeof Math.hypot; + export const MathImul: typeof Math.imul; + export const MathLog: typeof Math.log; + export const MathLog1p: typeof Math.log1p; + export const MathLog2: typeof Math.log2; + export const MathLog10: typeof Math.log10; + export const MathMax: typeof Math.max; + export const MathMaxApply: StaticApply; + export const MathMin: typeof Math.min; + export const MathPow: typeof Math.pow; + export const MathRandom: typeof Math.random; + export const MathRound: typeof Math.round; + export const MathSign: typeof Math.sign; + export const MathSin: typeof Math.sin; + export const MathSinh: typeof Math.sinh; + export const MathSqrt: typeof Math.sqrt; + export const MathTan: typeof Math.tan; + export const MathTanh: typeof Math.tanh; + export const MathTrunc: typeof Math.trunc; + export const MathE: typeof Math.E; + export const MathLN10: typeof Math.LN10; + export const MathLN2: typeof Math.LN2; + export const MathLOG10E: typeof Math.LOG10E; + export const MathLOG2E: typeof Math.LOG2E; + export const MathPI: typeof Math.PI; + export const MathSQRT1_2: typeof Math.SQRT1_2; + export const MathSQRT2: typeof Math.SQRT2; + export const ReflectDefineProperty: typeof Reflect.defineProperty; + export const ReflectDeleteProperty: typeof Reflect.deleteProperty; + export const ReflectApply: typeof Reflect.apply; + export const ReflectConstruct: typeof Reflect.construct; + export const ReflectGet: typeof Reflect.get; + export const ReflectGetOwnPropertyDescriptor: typeof Reflect.getOwnPropertyDescriptor; + export const ReflectGetPrototypeOf: typeof Reflect.getPrototypeOf; + export const ReflectHas: typeof Reflect.has; + export const ReflectIsExtensible: typeof Reflect.isExtensible; + export const ReflectOwnKeys: typeof Reflect.ownKeys; + export const ReflectPreventExtensions: typeof Reflect.preventExtensions; + export const ReflectSet: typeof Reflect.set; + export const ReflectSetPrototypeOf: typeof Reflect.setPrototypeOf; export import AggregateError = globalThis.AggregateError; - export const AggregateErrorPrototype: typeof AggregateError.prototype + export const AggregateErrorPrototype: typeof AggregateError.prototype; export import Array = globalThis.Array; - export const ArrayPrototype: typeof Array.prototype - export const ArrayIsArray: typeof Array.isArray - export const ArrayFrom: typeof Array.from - export const ArrayFromAsync: typeof Array.fromAsync - export const ArrayOf: typeof Array.of - export const ArrayPrototypeConcat: UncurryThis - export const ArrayPrototypeCopyWithin: UncurryThis - export const ArrayPrototypeFill: UncurryThis - export const ArrayPrototypeFind: UncurryThis - export const ArrayPrototypeFindIndex: UncurryThis - export const ArrayPrototypeLastIndexOf: UncurryThis - export const ArrayPrototypePop: UncurryThis - export const ArrayPrototypePush: UncurryThis - export const ArrayPrototypePushApply: UncurryThisStaticApply - export const ArrayPrototypeReverse: UncurryThis - export const ArrayPrototypeShift: UncurryThis - export const ArrayPrototypeUnshift: UncurryThis - export const ArrayPrototypeUnshiftApply: UncurryThisStaticApply - export const ArrayPrototypeSlice: UncurryThis - export const ArrayPrototypeSort: UncurryThis - export const ArrayPrototypeSplice: UncurryThis - export const ArrayPrototypeToSorted: UncurryThis - export const ArrayPrototypeIncludes: UncurryThis - export const ArrayPrototypeIndexOf: UncurryThis - export const ArrayPrototypeJoin: UncurryThis - export const ArrayPrototypeKeys: UncurryThis - export const ArrayPrototypeEntries: UncurryThis - export const ArrayPrototypeValues: UncurryThis - export const ArrayPrototypeForEach: UncurryThis - export const ArrayPrototypeFilter: UncurryThis - export const ArrayPrototypeFlat: UncurryThis - export const ArrayPrototypeFlatMap: UncurryThis - export const ArrayPrototypeMap: UncurryThis - export const ArrayPrototypeEvery: UncurryThis - export const ArrayPrototypeSome: UncurryThis - export const ArrayPrototypeReduce: UncurryThis - export const ArrayPrototypeReduceRight: UncurryThis - export const ArrayPrototypeToLocaleString: UncurryThis - export const ArrayPrototypeToString: UncurryThis + export const ArrayPrototype: typeof Array.prototype; + export const ArrayIsArray: typeof Array.isArray; + export const ArrayFrom: typeof Array.from; + export const ArrayFromAsync: typeof Array.fromAsync; + export const ArrayOf: typeof Array.of; + export const ArrayPrototypeConcat: UncurryThis; + export const ArrayPrototypeCopyWithin: UncurryThis; + export const ArrayPrototypeFill: UncurryThis; + export const ArrayPrototypeFind: UncurryThis; + export const ArrayPrototypeFindIndex: UncurryThis; + export const ArrayPrototypeLastIndexOf: UncurryThis; + export const ArrayPrototypePop: UncurryThis; + export const ArrayPrototypePush: UncurryThis; + export const ArrayPrototypePushApply: UncurryThisStaticApply; + export const ArrayPrototypeReverse: UncurryThis; + export const ArrayPrototypeShift: UncurryThis; + export const ArrayPrototypeUnshift: UncurryThis; + export const ArrayPrototypeUnshiftApply: UncurryThisStaticApply; + export const ArrayPrototypeSlice: UncurryThis; + export const ArrayPrototypeSort: UncurryThis; + export const ArrayPrototypeSplice: UncurryThis; + export const ArrayPrototypeToSorted: UncurryThis; + export const ArrayPrototypeIncludes: UncurryThis; + export const ArrayPrototypeIndexOf: UncurryThis; + export const ArrayPrototypeJoin: UncurryThis; + export const ArrayPrototypeKeys: UncurryThis; + export const ArrayPrototypeEntries: UncurryThis; + export const ArrayPrototypeValues: UncurryThis; + export const ArrayPrototypeForEach: UncurryThis; + export const ArrayPrototypeFilter: UncurryThis; + export const ArrayPrototypeFlat: UncurryThis; + export const ArrayPrototypeFlatMap: UncurryThis; + export const ArrayPrototypeMap: UncurryThis; + export const ArrayPrototypeEvery: UncurryThis; + export const ArrayPrototypeSome: UncurryThis; + export const ArrayPrototypeReduce: UncurryThis; + export const ArrayPrototypeReduceRight: UncurryThis; + export const ArrayPrototypeToLocaleString: UncurryThis; + export const ArrayPrototypeToString: UncurryThis; export const ArrayPrototypeSymbolIterator: UncurryMethod; export import ArrayBuffer = globalThis.ArrayBuffer; - export const ArrayBufferPrototype: typeof ArrayBuffer.prototype - export const ArrayBufferIsView: typeof ArrayBuffer.isView - export const ArrayBufferPrototypeGetDetached: UncurryThis - export const ArrayBufferPrototypeSlice: UncurryThis - export const ArrayBufferPrototypeTransfer: UncurryThis - export const ArrayBufferPrototypeGetByteLength: UncurryGetter; + export const ArrayBufferPrototype: typeof ArrayBuffer.prototype; + export const ArrayBufferIsView: typeof ArrayBuffer.isView; + export const ArrayBufferPrototypeGetDetached: UncurryThis; + export const ArrayBufferPrototypeSlice: UncurryThis; + export const ArrayBufferPrototypeTransfer: UncurryThis; + export const ArrayBufferPrototypeGetByteLength: UncurryGetter; export const AsyncIteratorPrototype: AsyncIterable; export import BigInt = globalThis.BigInt; - export const BigIntPrototype: typeof BigInt.prototype - export const BigIntAsUintN: typeof BigInt.asUintN - export const BigIntAsIntN: typeof BigInt.asIntN - export const BigIntPrototypeToLocaleString: UncurryThis - export const BigIntPrototypeToString: UncurryThis - export const BigIntPrototypeValueOf: UncurryThis + export const BigIntPrototype: typeof BigInt.prototype; + export const BigIntAsUintN: typeof BigInt.asUintN; + export const BigIntAsIntN: typeof BigInt.asIntN; + export const BigIntPrototypeToLocaleString: UncurryThis; + export const BigIntPrototypeToString: UncurryThis; + export const BigIntPrototypeValueOf: UncurryThis; export import BigInt64Array = globalThis.BigInt64Array; - export const BigInt64ArrayPrototype: typeof BigInt64Array.prototype - export const BigInt64ArrayBYTES_PER_ELEMENT: typeof BigInt64Array.BYTES_PER_ELEMENT + export const BigInt64ArrayPrototype: typeof BigInt64Array.prototype; + export const BigInt64ArrayBYTES_PER_ELEMENT: typeof BigInt64Array.BYTES_PER_ELEMENT; export import BigUint64Array = globalThis.BigUint64Array; - export const BigUint64ArrayPrototype: typeof BigUint64Array.prototype - export const BigUint64ArrayBYTES_PER_ELEMENT: typeof BigUint64Array.BYTES_PER_ELEMENT + export const BigUint64ArrayPrototype: typeof BigUint64Array.prototype; + export const BigUint64ArrayBYTES_PER_ELEMENT: typeof BigUint64Array.BYTES_PER_ELEMENT; export import Boolean = globalThis.Boolean; - export const BooleanPrototype: typeof Boolean.prototype - export const BooleanPrototypeToString: UncurryThis - export const BooleanPrototypeValueOf: UncurryThis + export const BooleanPrototype: typeof Boolean.prototype; + export const BooleanPrototypeToString: UncurryThis; + export const BooleanPrototypeValueOf: UncurryThis; export import DataView = globalThis.DataView; - export const DataViewPrototype: typeof DataView.prototype - export const DataViewPrototypeGetInt8: UncurryThis - export const DataViewPrototypeSetInt8: UncurryThis - export const DataViewPrototypeGetUint8: UncurryThis - export const DataViewPrototypeSetUint8: UncurryThis - export const DataViewPrototypeGetInt16: UncurryThis - export const DataViewPrototypeSetInt16: UncurryThis - export const DataViewPrototypeGetUint16: UncurryThis - export const DataViewPrototypeSetUint16: UncurryThis - export const DataViewPrototypeGetInt32: UncurryThis - export const DataViewPrototypeSetInt32: UncurryThis - export const DataViewPrototypeGetUint32: UncurryThis - export const DataViewPrototypeSetUint32: UncurryThis - export const DataViewPrototypeGetFloat32: UncurryThis - export const DataViewPrototypeSetFloat32: UncurryThis - export const DataViewPrototypeGetFloat64: UncurryThis - export const DataViewPrototypeSetFloat64: UncurryThis - export const DataViewPrototypeGetBigInt64: UncurryThis - export const DataViewPrototypeSetBigInt64: UncurryThis - export const DataViewPrototypeGetBigUint64: UncurryThis - export const DataViewPrototypeSetBigUint64: UncurryThis - export const DataViewPrototypeGetBuffer: UncurryGetter; - export const DataViewPrototypeGetByteLength: UncurryGetter; - export const DataViewPrototypeGetByteOffset: UncurryGetter; + export const DataViewPrototype: typeof DataView.prototype; + export const DataViewPrototypeGetInt8: UncurryThis; + export const DataViewPrototypeSetInt8: UncurryThis; + export const DataViewPrototypeGetUint8: UncurryThis; + export const DataViewPrototypeSetUint8: UncurryThis; + export const DataViewPrototypeGetInt16: UncurryThis; + export const DataViewPrototypeSetInt16: UncurryThis; + export const DataViewPrototypeGetUint16: UncurryThis; + export const DataViewPrototypeSetUint16: UncurryThis; + export const DataViewPrototypeGetInt32: UncurryThis; + export const DataViewPrototypeSetInt32: UncurryThis; + export const DataViewPrototypeGetUint32: UncurryThis; + export const DataViewPrototypeSetUint32: UncurryThis; + export const DataViewPrototypeGetFloat32: UncurryThis; + export const DataViewPrototypeSetFloat32: UncurryThis; + export const DataViewPrototypeGetFloat64: UncurryThis; + export const DataViewPrototypeSetFloat64: UncurryThis; + export const DataViewPrototypeGetBigInt64: UncurryThis; + export const DataViewPrototypeSetBigInt64: UncurryThis; + export const DataViewPrototypeGetBigUint64: UncurryThis; + export const DataViewPrototypeSetBigUint64: UncurryThis; + export const DataViewPrototypeGetBuffer: UncurryGetter; + export const DataViewPrototypeGetByteLength: UncurryGetter; + export const DataViewPrototypeGetByteOffset: UncurryGetter; export import Date = globalThis.Date; - export const DatePrototype: typeof Date.prototype - export const DateNow: typeof Date.now - export const DateParse: typeof Date.parse - export const DateUTC: typeof Date.UTC - export const DatePrototypeToString: UncurryThis - export const DatePrototypeToDateString: UncurryThis - export const DatePrototypeToTimeString: UncurryThis - export const DatePrototypeToISOString: UncurryThis - export const DatePrototypeToUTCString: UncurryThis - export const DatePrototypeGetDate: UncurryThis - export const DatePrototypeSetDate: UncurryThis - export const DatePrototypeGetDay: UncurryThis - export const DatePrototypeGetFullYear: UncurryThis - export const DatePrototypeSetFullYear: UncurryThis - export const DatePrototypeGetHours: UncurryThis - export const DatePrototypeSetHours: UncurryThis - export const DatePrototypeGetMilliseconds: UncurryThis - export const DatePrototypeSetMilliseconds: UncurryThis - export const DatePrototypeGetMinutes: UncurryThis - export const DatePrototypeSetMinutes: UncurryThis - export const DatePrototypeGetMonth: UncurryThis - export const DatePrototypeSetMonth: UncurryThis - export const DatePrototypeGetSeconds: UncurryThis - export const DatePrototypeSetSeconds: UncurryThis - export const DatePrototypeGetTime: UncurryThis - export const DatePrototypeSetTime: UncurryThis - export const DatePrototypeGetTimezoneOffset: UncurryThis - export const DatePrototypeGetUTCDate: UncurryThis - export const DatePrototypeSetUTCDate: UncurryThis - export const DatePrototypeGetUTCDay: UncurryThis - export const DatePrototypeGetUTCFullYear: UncurryThis - export const DatePrototypeSetUTCFullYear: UncurryThis - export const DatePrototypeGetUTCHours: UncurryThis - export const DatePrototypeSetUTCHours: UncurryThis - export const DatePrototypeGetUTCMilliseconds: UncurryThis - export const DatePrototypeSetUTCMilliseconds: UncurryThis - export const DatePrototypeGetUTCMinutes: UncurryThis - export const DatePrototypeSetUTCMinutes: UncurryThis - export const DatePrototypeGetUTCMonth: UncurryThis - export const DatePrototypeSetUTCMonth: UncurryThis - export const DatePrototypeGetUTCSeconds: UncurryThis - export const DatePrototypeSetUTCSeconds: UncurryThis - export const DatePrototypeValueOf: UncurryThis - export const DatePrototypeToJSON: UncurryThis - export const DatePrototypeToLocaleString: UncurryThis - export const DatePrototypeToLocaleDateString: UncurryThis - export const DatePrototypeToLocaleTimeString: UncurryThis + export const DatePrototype: typeof Date.prototype; + export const DateNow: typeof Date.now; + export const DateParse: typeof Date.parse; + export const DateUTC: typeof Date.UTC; + export const DatePrototypeToString: UncurryThis; + export const DatePrototypeToDateString: UncurryThis; + export const DatePrototypeToTimeString: UncurryThis; + export const DatePrototypeToISOString: UncurryThis; + export const DatePrototypeToUTCString: UncurryThis; + export const DatePrototypeGetDate: UncurryThis; + export const DatePrototypeSetDate: UncurryThis; + export const DatePrototypeGetDay: UncurryThis; + export const DatePrototypeGetFullYear: UncurryThis; + export const DatePrototypeSetFullYear: UncurryThis; + export const DatePrototypeGetHours: UncurryThis; + export const DatePrototypeSetHours: UncurryThis; + export const DatePrototypeGetMilliseconds: UncurryThis; + export const DatePrototypeSetMilliseconds: UncurryThis; + export const DatePrototypeGetMinutes: UncurryThis; + export const DatePrototypeSetMinutes: UncurryThis; + export const DatePrototypeGetMonth: UncurryThis; + export const DatePrototypeSetMonth: UncurryThis; + export const DatePrototypeGetSeconds: UncurryThis; + export const DatePrototypeSetSeconds: UncurryThis; + export const DatePrototypeGetTime: UncurryThis; + export const DatePrototypeSetTime: UncurryThis; + export const DatePrototypeGetTimezoneOffset: UncurryThis; + export const DatePrototypeGetUTCDate: UncurryThis; + export const DatePrototypeSetUTCDate: UncurryThis; + export const DatePrototypeGetUTCDay: UncurryThis; + export const DatePrototypeGetUTCFullYear: UncurryThis; + export const DatePrototypeSetUTCFullYear: UncurryThis; + export const DatePrototypeGetUTCHours: UncurryThis; + export const DatePrototypeSetUTCHours: UncurryThis; + export const DatePrototypeGetUTCMilliseconds: UncurryThis; + export const DatePrototypeSetUTCMilliseconds: UncurryThis; + export const DatePrototypeGetUTCMinutes: UncurryThis; + export const DatePrototypeSetUTCMinutes: UncurryThis; + export const DatePrototypeGetUTCMonth: UncurryThis; + export const DatePrototypeSetUTCMonth: UncurryThis; + export const DatePrototypeGetUTCSeconds: UncurryThis; + export const DatePrototypeSetUTCSeconds: UncurryThis; + export const DatePrototypeValueOf: UncurryThis; + export const DatePrototypeToJSON: UncurryThis; + export const DatePrototypeToLocaleString: UncurryThis; + export const DatePrototypeToLocaleDateString: UncurryThis; + export const DatePrototypeToLocaleTimeString: UncurryThis; export const DatePrototypeSymbolToPrimitive: UncurryMethod; export import Error = globalThis.Error; - export const ErrorPrototype: typeof Error.prototype + export const ErrorPrototype: typeof Error.prototype; // @ts-ignore - export const ErrorCaptureStackTrace: typeof Error.captureStackTrace - export const ErrorPrototypeToString: UncurryThis + export const ErrorCaptureStackTrace: typeof Error.captureStackTrace; + export const ErrorPrototypeToString: UncurryThis; export import EvalError = globalThis.EvalError; - export const EvalErrorPrototype: typeof EvalError.prototype + export const EvalErrorPrototype: typeof EvalError.prototype; export import Float32Array = globalThis.Float32Array; - export const Float32ArrayPrototype: typeof Float32Array.prototype - export const Float32ArrayBYTES_PER_ELEMENT: typeof Float32Array.BYTES_PER_ELEMENT + export const Float32ArrayPrototype: typeof Float32Array.prototype; + export const Float32ArrayBYTES_PER_ELEMENT: typeof Float32Array.BYTES_PER_ELEMENT; export import Float64Array = globalThis.Float64Array; - export const Float64ArrayPrototype: typeof Float64Array.prototype - export const Float64ArrayBYTES_PER_ELEMENT: typeof Float64Array.BYTES_PER_ELEMENT + export const Float64ArrayPrototype: typeof Float64Array.prototype; + export const Float64ArrayBYTES_PER_ELEMENT: typeof Float64Array.BYTES_PER_ELEMENT; export import Function = globalThis.Function; - export const FunctionLength: typeof Function.length - export const FunctionName: typeof Function.name - export const FunctionPrototype: typeof Function.prototype - export const FunctionPrototypeApply: UncurryThis - export const FunctionPrototypeBind: UncurryThis - export const FunctionPrototypeCall: UncurryThis - export const FunctionPrototypeToString: UncurryThis + export const FunctionLength: typeof Function.length; + export const FunctionName: typeof Function.name; + export const FunctionPrototype: typeof Function.prototype; + export const FunctionPrototypeApply: UncurryThis; + export const FunctionPrototypeBind: UncurryThis; + export const FunctionPrototypeCall: UncurryThis; + export const FunctionPrototypeToString: UncurryThis; export import Int16Array = globalThis.Int16Array; - export const Int16ArrayPrototype: typeof Int16Array.prototype - export const Int16ArrayBYTES_PER_ELEMENT: typeof Int16Array.BYTES_PER_ELEMENT + export const Int16ArrayPrototype: typeof Int16Array.prototype; + export const Int16ArrayBYTES_PER_ELEMENT: typeof Int16Array.BYTES_PER_ELEMENT; export import Int32Array = globalThis.Int32Array; - export const Int32ArrayPrototype: typeof Int32Array.prototype - export const Int32ArrayBYTES_PER_ELEMENT: typeof Int32Array.BYTES_PER_ELEMENT + export const Int32ArrayPrototype: typeof Int32Array.prototype; + export const Int32ArrayBYTES_PER_ELEMENT: typeof Int32Array.BYTES_PER_ELEMENT; export import Int8Array = globalThis.Int8Array; - export const Int8ArrayPrototype: typeof Int8Array.prototype - export const Int8ArrayBYTES_PER_ELEMENT: typeof Int8Array.BYTES_PER_ELEMENT + export const Int8ArrayPrototype: typeof Int8Array.prototype; + export const Int8ArrayBYTES_PER_ELEMENT: typeof Int8Array.BYTES_PER_ELEMENT; export import Map = globalThis.Map; - export const MapPrototype: typeof Map.prototype - export const MapPrototypeGet: UncurryThis - export const MapPrototypeSet: UncurryThis - export const MapPrototypeHas: UncurryThis - export const MapPrototypeDelete: UncurryThis - export const MapPrototypeClear: UncurryThis - export const MapPrototypeEntries: UncurryThis - export const MapPrototypeForEach: UncurryThis - export const MapPrototypeKeys: UncurryThis - export const MapPrototypeValues: UncurryThis - export const MapPrototypeGetSize: UncurryGetter; + export const MapPrototype: typeof Map.prototype; + export const MapPrototypeGet: UncurryThis; + export const MapPrototypeSet: UncurryThis; + export const MapPrototypeHas: UncurryThis; + export const MapPrototypeDelete: UncurryThis; + export const MapPrototypeClear: UncurryThis; + export const MapPrototypeEntries: UncurryThis; + export const MapPrototypeForEach: UncurryThis; + export const MapPrototypeKeys: UncurryThis; + export const MapPrototypeValues: UncurryThis; + export const MapPrototypeGetSize: UncurryGetter; export import Number = globalThis.Number; - export const NumberPrototype: typeof Number.prototype - export const NumberIsFinite: typeof Number.isFinite - export const NumberIsInteger: typeof Number.isInteger - export const NumberIsNaN: typeof Number.isNaN - export const NumberIsSafeInteger: typeof Number.isSafeInteger - export const NumberParseFloat: typeof Number.parseFloat - export const NumberParseInt: typeof Number.parseInt - export const NumberMAX_VALUE: typeof Number.MAX_VALUE - export const NumberMIN_VALUE: typeof Number.MIN_VALUE - export const NumberNaN: typeof Number.NaN - export const NumberNEGATIVE_INFINITY: typeof Number.NEGATIVE_INFINITY - export const NumberPOSITIVE_INFINITY: typeof Number.POSITIVE_INFINITY - export const NumberMAX_SAFE_INTEGER: typeof Number.MAX_SAFE_INTEGER - export const NumberMIN_SAFE_INTEGER: typeof Number.MIN_SAFE_INTEGER - export const NumberEPSILON: typeof Number.EPSILON - export const NumberPrototypeToExponential: UncurryThis - export const NumberPrototypeToFixed: UncurryThis - export const NumberPrototypeToPrecision: UncurryThis - export const NumberPrototypeToString: UncurryThis - export const NumberPrototypeValueOf: UncurryThis - export const NumberPrototypeToLocaleString: UncurryThis + export const NumberPrototype: typeof Number.prototype; + export const NumberIsFinite: typeof Number.isFinite; + export const NumberIsInteger: typeof Number.isInteger; + export const NumberIsNaN: typeof Number.isNaN; + export const NumberIsSafeInteger: typeof Number.isSafeInteger; + export const NumberParseFloat: typeof Number.parseFloat; + export const NumberParseInt: typeof Number.parseInt; + export const NumberMAX_VALUE: typeof Number.MAX_VALUE; + export const NumberMIN_VALUE: typeof Number.MIN_VALUE; + export const NumberNaN: typeof Number.NaN; + export const NumberNEGATIVE_INFINITY: typeof Number.NEGATIVE_INFINITY; + export const NumberPOSITIVE_INFINITY: typeof Number.POSITIVE_INFINITY; + export const NumberMAX_SAFE_INTEGER: typeof Number.MAX_SAFE_INTEGER; + export const NumberMIN_SAFE_INTEGER: typeof Number.MIN_SAFE_INTEGER; + export const NumberEPSILON: typeof Number.EPSILON; + export const NumberPrototypeToExponential: UncurryThis; + export const NumberPrototypeToFixed: UncurryThis; + export const NumberPrototypeToPrecision: UncurryThis; + export const NumberPrototypeToString: UncurryThis; + export const NumberPrototypeValueOf: UncurryThis; + export const NumberPrototypeToLocaleString: UncurryThis; export import Object = globalThis.Object; - export const ObjectPrototype: typeof Object.prototype - export const ObjectAssign: typeof Object.assign - export const ObjectGetOwnPropertyDescriptor: typeof Object.getOwnPropertyDescriptor - export const ObjectGetOwnPropertyDescriptors: typeof Object.getOwnPropertyDescriptors - export const ObjectGetOwnPropertyNames: typeof Object.getOwnPropertyNames - export const ObjectGetOwnPropertySymbols: typeof Object.getOwnPropertySymbols - export const ObjectIs: typeof Object.is - export const ObjectPreventExtensions: typeof Object.preventExtensions - export const ObjectSeal: typeof Object.seal - export const ObjectCreate: typeof Object.create - export const ObjectDefineProperties: typeof Object.defineProperties - export const ObjectDefineProperty: typeof Object.defineProperty - export const ObjectFreeze: typeof Object.freeze - export const ObjectGetPrototypeOf: typeof Object.getPrototypeOf - export const ObjectSetPrototypeOf: typeof Object.setPrototypeOf - export const ObjectIsExtensible: typeof Object.isExtensible - export const ObjectIsFrozen: typeof Object.isFrozen - export const ObjectIsSealed: typeof Object.isSealed - export const ObjectKeys: typeof Object.keys - export const ObjectEntries: typeof Object.entries - export const ObjectFromEntries: typeof Object.fromEntries - export const ObjectValues: typeof Object.values - export const ObjectPrototypeHasOwnProperty: UncurryThis - export const ObjectPrototypeIsPrototypeOf: UncurryThis - export const ObjectPrototypePropertyIsEnumerable: UncurryThis - export const ObjectPrototypeToString: UncurryThis - export const ObjectPrototypeValueOf: UncurryThis - export const ObjectPrototypeToLocaleString: UncurryThis + export const ObjectPrototype: typeof Object.prototype; + export const ObjectAssign: typeof Object.assign; + export const ObjectGetOwnPropertyDescriptor: typeof Object.getOwnPropertyDescriptor; + export const ObjectGetOwnPropertyDescriptors: typeof Object.getOwnPropertyDescriptors; + export const ObjectGetOwnPropertyNames: typeof Object.getOwnPropertyNames; + export const ObjectGetOwnPropertySymbols: typeof Object.getOwnPropertySymbols; + export const ObjectIs: typeof Object.is; + export const ObjectPreventExtensions: typeof Object.preventExtensions; + export const ObjectSeal: typeof Object.seal; + export const ObjectCreate: typeof Object.create; + export const ObjectDefineProperties: typeof Object.defineProperties; + export const ObjectDefineProperty: typeof Object.defineProperty; + export const ObjectFreeze: typeof Object.freeze; + export const ObjectGetPrototypeOf: typeof Object.getPrototypeOf; + export const ObjectSetPrototypeOf: typeof Object.setPrototypeOf; + export const ObjectIsExtensible: typeof Object.isExtensible; + export const ObjectIsFrozen: typeof Object.isFrozen; + export const ObjectIsSealed: typeof Object.isSealed; + export const ObjectKeys: typeof Object.keys; + export const ObjectEntries: typeof Object.entries; + export const ObjectFromEntries: typeof Object.fromEntries; + export const ObjectValues: typeof Object.values; + export const ObjectPrototypeHasOwnProperty: UncurryThis; + export const ObjectPrototypeIsPrototypeOf: UncurryThis; + export const ObjectPrototypePropertyIsEnumerable: UncurryThis; + export const ObjectPrototypeToString: UncurryThis; + export const ObjectPrototypeValueOf: UncurryThis; + export const ObjectPrototypeToLocaleString: UncurryThis; export import RangeError = globalThis.RangeError; - export const RangeErrorPrototype: typeof RangeError.prototype + export const RangeErrorPrototype: typeof RangeError.prototype; export import ReferenceError = globalThis.ReferenceError; - export const ReferenceErrorPrototype: typeof ReferenceError.prototype + export const ReferenceErrorPrototype: typeof ReferenceError.prototype; export import RegExp = globalThis.RegExp; - export const RegExpPrototype: typeof RegExp.prototype - export const RegExpPrototypeExec: UncurryThis - export const RegExpPrototypeCompile: UncurryThis - export const RegExpPrototypeToString: UncurryThis - export const RegExpPrototypeTest: UncurryThis - export const RegExpPrototypeGetDotAll: UncurryGetter; - export const RegExpPrototypeGetFlags: UncurryGetter; - export const RegExpPrototypeGetGlobal: UncurryGetter; - export const RegExpPrototypeGetIgnoreCase: UncurryGetter; - export const RegExpPrototypeGetMultiline: UncurryGetter; - export const RegExpPrototypeGetSource: UncurryGetter; - export const RegExpPrototypeGetSticky: UncurryGetter; - export const RegExpPrototypeGetUnicode: UncurryGetter; + export const RegExpPrototype: typeof RegExp.prototype; + export const RegExpPrototypeExec: UncurryThis; + export const RegExpPrototypeCompile: UncurryThis; + export const RegExpPrototypeToString: UncurryThis; + export const RegExpPrototypeTest: UncurryThis; + export const RegExpPrototypeGetDotAll: UncurryGetter; + export const RegExpPrototypeGetFlags: UncurryGetter; + export const RegExpPrototypeGetGlobal: UncurryGetter; + export const RegExpPrototypeGetIgnoreCase: UncurryGetter; + export const RegExpPrototypeGetMultiline: UncurryGetter; + export const RegExpPrototypeGetSource: UncurryGetter; + export const RegExpPrototypeGetSticky: UncurryGetter; + export const RegExpPrototypeGetUnicode: UncurryGetter; export import Set = globalThis.Set; - export const SetLength: typeof Set.length - export const SetName: typeof Set.name - export const SetPrototype: typeof Set.prototype - export const SetPrototypeHas: UncurryThis - export const SetPrototypeAdd: UncurryThis - export const SetPrototypeDelete: UncurryThis - export const SetPrototypeClear: UncurryThis - export const SetPrototypeEntries: UncurryThis - export const SetPrototypeForEach: UncurryThis - export const SetPrototypeValues: UncurryThis - export const SetPrototypeKeys: UncurryThis - export const SetPrototypeGetSize: UncurryGetter; + export const SetLength: typeof Set.length; + export const SetName: typeof Set.name; + export const SetPrototype: typeof Set.prototype; + export const SetPrototypeHas: UncurryThis; + export const SetPrototypeAdd: UncurryThis; + export const SetPrototypeDelete: UncurryThis; + export const SetPrototypeClear: UncurryThis; + export const SetPrototypeEntries: UncurryThis; + export const SetPrototypeForEach: UncurryThis; + export const SetPrototypeValues: UncurryThis; + export const SetPrototypeKeys: UncurryThis; + export const SetPrototypeGetSize: UncurryGetter; export import String = globalThis.String; - export const StringLength: typeof String.length - export const StringName: typeof String.name - export const StringPrototype: typeof String.prototype - export const StringFromCharCode: typeof String.fromCharCode - export const StringFromCharCodeApply: StaticApply - export const StringFromCodePoint: typeof String.fromCodePoint - export const StringFromCodePointApply: StaticApply - export const StringRaw: typeof String.raw - export const StringPrototypeAnchor: UncurryThis - export const StringPrototypeBig: UncurryThis - export const StringPrototypeBlink: UncurryThis - export const StringPrototypeBold: UncurryThis - export const StringPrototypeCharAt: UncurryThis - export const StringPrototypeCharCodeAt: UncurryThis - export const StringPrototypeCodePointAt: UncurryThis - export const StringPrototypeConcat: UncurryThis - export const StringPrototypeEndsWith: UncurryThis - export const StringPrototypeFontcolor: UncurryThis - export const StringPrototypeFontsize: UncurryThis - export const StringPrototypeFixed: UncurryThis - export const StringPrototypeIncludes: UncurryThis - export const StringPrototypeIndexOf: UncurryThis - export const StringPrototypeItalics: UncurryThis - export const StringPrototypeLastIndexOf: UncurryThis - export const StringPrototypeLink: UncurryThis - export const StringPrototypeLocaleCompare: UncurryThis - export const StringPrototypeMatch: UncurryThis - export const StringPrototypeMatchAll: UncurryThis - export const StringPrototypeNormalize: UncurryThis - export const StringPrototypePadEnd: UncurryThis - export const StringPrototypePadStart: UncurryThis - export const StringPrototypeRepeat: UncurryThis - export const StringPrototypeReplace: UncurryThis - export const StringPrototypeSearch: UncurryThis - export const StringPrototypeSlice: UncurryThis - export const StringPrototypeSmall: UncurryThis - export const StringPrototypeSplit: UncurryThis - export const StringPrototypeStrike: UncurryThis - export const StringPrototypeSub: UncurryThis - export const StringPrototypeSubstr: UncurryThis - export const StringPrototypeSubstring: UncurryThis - export const StringPrototypeSup: UncurryThis - export const StringPrototypeStartsWith: UncurryThis - export const StringPrototypeToString: UncurryThis - export const StringPrototypeTrim: UncurryThis - export const StringPrototypeTrimStart: UncurryThis - export const StringPrototypeTrimLeft: UncurryThis - export const StringPrototypeTrimEnd: UncurryThis - export const StringPrototypeTrimRight: UncurryThis - export const StringPrototypeToLocaleLowerCase: UncurryThis - export const StringPrototypeToLocaleUpperCase: UncurryThis - export const StringPrototypeToLowerCase: UncurryThis - export const StringPrototypeToUpperCase: UncurryThis - export const StringPrototypeToWellFormed: UncurryThis - export const StringPrototypeValueOf: UncurryThis - export const StringPrototypeReplaceAll: UncurryThis + export const StringLength: typeof String.length; + export const StringName: typeof String.name; + export const StringPrototype: typeof String.prototype; + export const StringFromCharCode: typeof String.fromCharCode; + export const StringFromCharCodeApply: StaticApply; + export const StringFromCodePoint: typeof String.fromCodePoint; + export const StringFromCodePointApply: StaticApply; + export const StringRaw: typeof String.raw; + export const StringPrototypeAnchor: UncurryThis; + export const StringPrototypeBig: UncurryThis; + export const StringPrototypeBlink: UncurryThis; + export const StringPrototypeBold: UncurryThis; + export const StringPrototypeCharAt: UncurryThis; + export const StringPrototypeCharCodeAt: UncurryThis; + export const StringPrototypeCodePointAt: UncurryThis; + export const StringPrototypeConcat: UncurryThis; + export const StringPrototypeEndsWith: UncurryThis; + export const StringPrototypeFontcolor: UncurryThis; + export const StringPrototypeFontsize: UncurryThis; + export const StringPrototypeFixed: UncurryThis; + export const StringPrototypeIncludes: UncurryThis; + export const StringPrototypeIndexOf: UncurryThis; + export const StringPrototypeItalics: UncurryThis; + export const StringPrototypeLastIndexOf: UncurryThis; + export const StringPrototypeLink: UncurryThis; + export const StringPrototypeLocaleCompare: UncurryThis; + export const StringPrototypeMatch: UncurryThis; + export const StringPrototypeMatchAll: UncurryThis; + export const StringPrototypeNormalize: UncurryThis; + export const StringPrototypePadEnd: UncurryThis; + export const StringPrototypePadStart: UncurryThis; + export const StringPrototypeRepeat: UncurryThis; + export const StringPrototypeReplace: UncurryThis; + export const StringPrototypeSearch: UncurryThis; + export const StringPrototypeSlice: UncurryThis; + export const StringPrototypeSmall: UncurryThis; + export const StringPrototypeSplit: UncurryThis; + export const StringPrototypeStrike: UncurryThis; + export const StringPrototypeSub: UncurryThis; + export const StringPrototypeSubstr: UncurryThis; + export const StringPrototypeSubstring: UncurryThis; + export const StringPrototypeSup: UncurryThis; + export const StringPrototypeStartsWith: UncurryThis; + export const StringPrototypeToString: UncurryThis; + export const StringPrototypeTrim: UncurryThis; + export const StringPrototypeTrimStart: UncurryThis; + export const StringPrototypeTrimLeft: UncurryThis; + export const StringPrototypeTrimEnd: UncurryThis; + export const StringPrototypeTrimRight: UncurryThis; + export const StringPrototypeToLocaleLowerCase: UncurryThis; + export const StringPrototypeToLocaleUpperCase: UncurryThis; + export const StringPrototypeToLowerCase: UncurryThis; + export const StringPrototypeToUpperCase: UncurryThis; + export const StringPrototypeToWellFormed: UncurryThis; + export const StringPrototypeValueOf: UncurryThis; + export const StringPrototypeReplaceAll: UncurryThis; export import Symbol = globalThis.Symbol; - export const SymbolPrototype: typeof Symbol.prototype - export const SymbolFor: typeof Symbol.for - export const SymbolKeyFor: typeof Symbol.keyFor - export const SymbolAsyncDispose: typeof Symbol.asyncDispose - export const SymbolAsyncIterator: typeof Symbol.asyncIterator - export const SymbolDispose: typeof Symbol.dispose - export const SymbolHasInstance: typeof Symbol.hasInstance - export const SymbolIsConcatSpreadable: typeof Symbol.isConcatSpreadable - export const SymbolIterator: typeof Symbol.iterator - export const SymbolMatch: typeof Symbol.match - export const SymbolMatchAll: typeof Symbol.matchAll - export const SymbolReplace: typeof Symbol.replace - export const SymbolSearch: typeof Symbol.search - export const SymbolSpecies: typeof Symbol.species - export const SymbolSplit: typeof Symbol.split - export const SymbolToPrimitive: typeof Symbol.toPrimitive - export const SymbolToStringTag: typeof Symbol.toStringTag - export const SymbolUnscopables: typeof Symbol.unscopables - export const SymbolPrototypeToString: UncurryThis - export const SymbolPrototypeValueOf: UncurryThis - export const SymbolPrototypeSymbolToPrimitive: UncurryMethod; - export const SymbolPrototypeGetDescription: UncurryGetter; + export const SymbolPrototype: typeof Symbol.prototype; + export const SymbolFor: typeof Symbol.for; + export const SymbolKeyFor: typeof Symbol.keyFor; + export const SymbolAsyncDispose: typeof Symbol.asyncDispose; + export const SymbolAsyncIterator: typeof Symbol.asyncIterator; + export const SymbolDispose: typeof Symbol.dispose; + export const SymbolHasInstance: typeof Symbol.hasInstance; + export const SymbolIsConcatSpreadable: typeof Symbol.isConcatSpreadable; + export const SymbolIterator: typeof Symbol.iterator; + export const SymbolMatch: typeof Symbol.match; + export const SymbolMatchAll: typeof Symbol.matchAll; + export const SymbolReplace: typeof Symbol.replace; + export const SymbolSearch: typeof Symbol.search; + export const SymbolSpecies: typeof Symbol.species; + export const SymbolSplit: typeof Symbol.split; + export const SymbolToPrimitive: typeof Symbol.toPrimitive; + export const SymbolToStringTag: typeof Symbol.toStringTag; + export const SymbolUnscopables: typeof Symbol.unscopables; + export const SymbolPrototypeToString: UncurryThis; + export const SymbolPrototypeValueOf: UncurryThis; + export const SymbolPrototypeSymbolToPrimitive: + UncurryMethod; + export const SymbolPrototypeGetDescription: UncurryGetter; export import SyntaxError = globalThis.SyntaxError; - export const SyntaxErrorPrototype: typeof SyntaxError.prototype + export const SyntaxErrorPrototype: typeof SyntaxError.prototype; export import TypeError = globalThis.TypeError; - export const TypeErrorPrototype: typeof TypeError.prototype + export const TypeErrorPrototype: typeof TypeError.prototype; export function TypedArrayFrom( constructor: new (length: number) => T, source: @@ -479,10 +479,10 @@ declare namespace primordials { constructor: new (length: number) => T, items: readonly TypedArrayContentType[], ): T; - export const TypedArrayPrototypeGetBuffer: UncurryGetter; - export const TypedArrayPrototypeGetByteLength: UncurryGetter; - export const TypedArrayPrototypeGetByteOffset: UncurryGetter; - export const TypedArrayPrototypeGetLength: UncurryGetter; + export const TypedArrayPrototypeGetBuffer: UncurryGetter; + export const TypedArrayPrototypeGetByteLength: UncurryGetter; + export const TypedArrayPrototypeGetByteOffset: UncurryGetter; + export const TypedArrayPrototypeGetLength: UncurryGetter; export function TypedArrayPrototypeGetSymbolToStringTag(self: unknown): | 'Int8Array' | 'Int16Array' @@ -497,43 +497,43 @@ declare namespace primordials { | 'Float64Array' | undefined; export import URIError = globalThis.URIError; - export const URIErrorPrototype: typeof URIError.prototype + export const URIErrorPrototype: typeof URIError.prototype; export import Uint16Array = globalThis.Uint16Array; - export const Uint16ArrayPrototype: typeof Uint16Array.prototype - export const Uint16ArrayBYTES_PER_ELEMENT: typeof Uint16Array.BYTES_PER_ELEMENT + export const Uint16ArrayPrototype: typeof Uint16Array.prototype; + export const Uint16ArrayBYTES_PER_ELEMENT: typeof Uint16Array.BYTES_PER_ELEMENT; export import Uint32Array = globalThis.Uint32Array; - export const Uint32ArrayPrototype: typeof Uint32Array.prototype - export const Uint32ArrayBYTES_PER_ELEMENT: typeof Uint32Array.BYTES_PER_ELEMENT + export const Uint32ArrayPrototype: typeof Uint32Array.prototype; + export const Uint32ArrayBYTES_PER_ELEMENT: typeof Uint32Array.BYTES_PER_ELEMENT; export import Uint8Array = globalThis.Uint8Array; - export const Uint8ArrayPrototype: typeof Uint8Array.prototype - export const Uint8ArrayBYTES_PER_ELEMENT: typeof Uint8Array.BYTES_PER_ELEMENT + export const Uint8ArrayPrototype: typeof Uint8Array.prototype; + export const Uint8ArrayBYTES_PER_ELEMENT: typeof Uint8Array.BYTES_PER_ELEMENT; export import Uint8ClampedArray = globalThis.Uint8ClampedArray; - export const Uint8ClampedArrayPrototype: typeof Uint8ClampedArray.prototype - export const Uint8ClampedArrayBYTES_PER_ELEMENT: typeof Uint8ClampedArray.BYTES_PER_ELEMENT + export const Uint8ClampedArrayPrototype: typeof Uint8ClampedArray.prototype; + export const Uint8ClampedArrayBYTES_PER_ELEMENT: typeof Uint8ClampedArray.BYTES_PER_ELEMENT; export import WeakMap = globalThis.WeakMap; - export const WeakMapPrototype: typeof WeakMap.prototype - export const WeakMapPrototypeDelete: UncurryThis - export const WeakMapPrototypeGet: UncurryThis - export const WeakMapPrototypeSet: UncurryThis - export const WeakMapPrototypeHas: UncurryThis + export const WeakMapPrototype: typeof WeakMap.prototype; + export const WeakMapPrototypeDelete: UncurryThis; + export const WeakMapPrototypeGet: UncurryThis; + export const WeakMapPrototypeSet: UncurryThis; + export const WeakMapPrototypeHas: UncurryThis; export import WeakSet = globalThis.WeakSet; - export const WeakSetPrototype: typeof WeakSet.prototype - export const WeakSetPrototypeDelete: UncurryThis - export const WeakSetPrototypeHas: UncurryThis - export const WeakSetPrototypeAdd: UncurryThis + export const WeakSetPrototype: typeof WeakSet.prototype; + export const WeakSetPrototypeDelete: UncurryThis; + export const WeakSetPrototypeHas: UncurryThis; + export const WeakSetPrototypeAdd: UncurryThis; export import Promise = globalThis.Promise; - export const PromisePrototype: typeof Promise.prototype - export const PromiseAll: typeof Promise.all - export const PromiseRace: typeof Promise.race - export const PromiseResolve: typeof Promise.resolve - export const PromiseReject: typeof Promise.reject - export const PromiseAllSettled: typeof Promise.allSettled - export const PromiseAny: typeof Promise.any - export const PromisePrototypeThen: UncurryThis - export const PromisePrototypeCatch: UncurryThis - export const PromisePrototypeFinally: UncurryThis - export const PromiseWithResolvers: typeof Promise.withResolvers + export const PromisePrototype: typeof Promise.prototype; + export const PromiseAll: typeof Promise.all; + export const PromiseRace: typeof Promise.race; + export const PromiseResolve: typeof Promise.resolve; + export const PromiseReject: typeof Promise.reject; + export const PromiseAllSettled: typeof Promise.allSettled; + export const PromiseAny: typeof Promise.any; + export const PromisePrototypeThen: UncurryThis; + export const PromisePrototypeCatch: UncurryThis; + export const PromisePrototypeFinally: UncurryThis; + export const PromiseWithResolvers: typeof Promise.withResolvers; export import Proxy = globalThis.Proxy import _globalThis = globalThis - export { _globalThis as globalThis } + export { _globalThis as globalThis }; }