├── .editorconfig ├── .gitattributes ├── .github └── workflows │ ├── main.yml │ └── upgrade.yml ├── .gitignore ├── .npmrc ├── license ├── package.json ├── readme.md ├── scripts ├── upgrade.js ├── utils │ ├── replacements.js │ └── version-check.js └── version-check.js ├── test ├── test.js └── typescript.test-d.ts └── typescript ├── .yarnrc ├── AUTHORS.md ├── CODE_OF_CONDUCT.md ├── CopyrightNotice.txt ├── LICENSE.txt ├── README.md ├── ThirdPartyNoticeText.txt ├── bin ├── tsc └── tsserver ├── lib ├── README.md ├── cancellationToken.js ├── cs │ └── diagnosticMessages.generated.json ├── de │ └── diagnosticMessages.generated.json ├── diagnosticMessages.generated.json ├── es │ └── diagnosticMessages.generated.json ├── fr │ └── diagnosticMessages.generated.json ├── it │ └── diagnosticMessages.generated.json ├── ja │ └── diagnosticMessages.generated.json ├── ko │ └── diagnosticMessages.generated.json ├── lib.d.ts ├── lib.dom.d.ts ├── lib.dom.iterable.d.ts ├── lib.es2015.collection.d.ts ├── lib.es2015.core.d.ts ├── lib.es2015.d.ts ├── lib.es2015.generator.d.ts ├── lib.es2015.iterable.d.ts ├── lib.es2015.promise.d.ts ├── lib.es2015.proxy.d.ts ├── lib.es2015.reflect.d.ts ├── lib.es2015.symbol.d.ts ├── lib.es2015.symbol.wellknown.d.ts ├── lib.es2016.array.include.d.ts ├── lib.es2016.d.ts ├── lib.es2016.full.d.ts ├── lib.es2017.d.ts ├── lib.es2017.full.d.ts ├── lib.es2017.intl.d.ts ├── lib.es2017.object.d.ts ├── lib.es2017.sharedmemory.d.ts ├── lib.es2017.string.d.ts ├── lib.es2017.typedarrays.d.ts ├── lib.es2018.asyncgenerator.d.ts ├── lib.es2018.asynciterable.d.ts ├── lib.es2018.d.ts ├── lib.es2018.full.d.ts ├── lib.es2018.intl.d.ts ├── lib.es2018.promise.d.ts ├── lib.es2018.regexp.d.ts ├── lib.es2019.array.d.ts ├── lib.es2019.d.ts ├── lib.es2019.full.d.ts ├── lib.es2019.object.d.ts ├── lib.es2019.string.d.ts ├── lib.es2019.symbol.d.ts ├── lib.es2020.bigint.d.ts ├── lib.es2020.d.ts ├── lib.es2020.full.d.ts ├── lib.es2020.intl.d.ts ├── lib.es2020.promise.d.ts ├── lib.es2020.sharedmemory.d.ts ├── lib.es2020.string.d.ts ├── lib.es2020.symbol.wellknown.d.ts ├── lib.es5.d.ts ├── lib.es6.d.ts ├── lib.esnext.array.d.ts ├── lib.esnext.asynciterable.d.ts ├── lib.esnext.bigint.d.ts ├── lib.esnext.d.ts ├── lib.esnext.full.d.ts ├── lib.esnext.intl.d.ts ├── lib.esnext.promise.d.ts ├── lib.esnext.string.d.ts ├── lib.esnext.symbol.d.ts ├── lib.esnext.weakref.d.ts ├── lib.scripthost.d.ts ├── lib.webworker.d.ts ├── lib.webworker.importscripts.d.ts ├── lib.webworker.iterable.d.ts ├── pl │ └── diagnosticMessages.generated.json ├── protocol.d.ts ├── pt-br │ └── diagnosticMessages.generated.json ├── ru │ └── diagnosticMessages.generated.json ├── tr │ └── diagnosticMessages.generated.json ├── tsc.js ├── tsserver.js ├── tsserverlibrary.d.ts ├── tsserverlibrary.js ├── typesMap.json ├── typescript.d.ts ├── typescript.js ├── typescriptServices.d.ts ├── typescriptServices.js ├── typingsInstaller.js ├── watchGuard.js ├── zh-cn │ └── diagnosticMessages.generated.json └── zh-tw │ └── diagnosticMessages.generated.json ├── loc └── lcl │ ├── CHS │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── CHT │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── CSY │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── DEU │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── ESN │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── FRA │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── ITA │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── JPN │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── KOR │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── PLK │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── PTB │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ ├── RUS │ ├── Targets │ │ ├── ProjectItemsSchema.xaml.lcl │ │ ├── TypeScriptCompile.xaml.lcl │ │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ │ └── TypeScript.Tasks.dll.lcl │ └── TRK │ ├── Targets │ ├── ProjectItemsSchema.xaml.lcl │ ├── TypeScriptCompile.xaml.lcl │ └── TypeScriptProjectProperties.xaml.lcl │ ├── TypeScriptDebugEngine │ └── TypeScriptDebugEngine.dll.lcl │ ├── TypeScriptLanguageService │ └── Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll.lcl │ └── TypeScriptTasks │ └── TypeScript.Tasks.dll.lcl └── package.json /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | end_of_line = lf 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [*.yml] 11 | indent_style = space 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: 3 | - push 4 | - pull_request 5 | jobs: 6 | test: 7 | name: Node.js ${{ matrix.node-version }} 8 | runs-on: ubuntu-latest 9 | strategy: 10 | fail-fast: false 11 | matrix: 12 | node-version: 13 | - 20 14 | - 18 15 | - 16 16 | - 14 17 | steps: 18 | - uses: actions/checkout@v3 19 | - uses: actions/setup-node@v3 20 | with: 21 | node-version: ${{ matrix.node-version }} 22 | - run: npm install 23 | - run: npm test 24 | -------------------------------------------------------------------------------- /.github/workflows/upgrade.yml: -------------------------------------------------------------------------------- 1 | name: Upgrade 2 | on: 3 | workflow_dispatch: null 4 | schedule: 5 | - cron: 0 0/6 * * * 6 | jobs: 7 | Check: 8 | outputs: 9 | version: '${{ steps.version.outputs.version }}' 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout 13 | uses: actions/checkout@v3 14 | - name: Install dependencies 15 | run: npm install 16 | - name: Check version 17 | id: version 18 | run: echo "version=$(npm run check --silent)" >> $GITHUB_OUTPUT 19 | Upgrade: 20 | needs: Check 21 | if: needs.Check.outputs.version 22 | runs-on: ubuntu-latest 23 | steps: 24 | - name: Checkout 25 | uses: actions/checkout@v3 26 | with: 27 | persist-credentials: false 28 | - name: Install dependencies 29 | run: npm install 30 | - name: Upgrade 31 | run: npm run upgrade ${{needs.Check.outputs.version}} 32 | - name: Test 33 | run: npm test 34 | - name: Commit changes 35 | run: | 36 | git config --global user.name 'Sam Verschueren' 37 | git config --global user.email 'sam.verschueren@gmail.com' 38 | git commit -am "Upgrade TypeScript@${{needs.Check.outputs.version}}" || echo "No changes made" 39 | - name: Publish 40 | run: | 41 | npm version ${{needs.Check.outputs.version}} 42 | echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc 43 | npm publish 44 | git checkout -- .npmrc 45 | env: 46 | NPM_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} 47 | - name: Push changes 48 | uses: ad-m/github-push-action@master 49 | with: 50 | github_token: ${{secrets.PAT}} 51 | tags: true 52 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Sam Verschueren (github.com/SamVerschueren) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@tsd/typescript", 3 | "version": "5.8.3", 4 | "description": "TypeScript with some extras for type-checking.", 5 | "license": "MIT", 6 | "repository": "tsdjs/typescript", 7 | "author": { 8 | "name": "Sam Verschueren", 9 | "email": "sam.verschueren@gmail.com", 10 | "url": "github.com/SamVerschueren" 11 | }, 12 | "main": "typescript/lib/typescript.js", 13 | "types": "typescript/lib/typescript.d.ts", 14 | "scripts": { 15 | "test": "tsd && ava", 16 | "upgrade": "node scripts/upgrade.js", 17 | "check": "node scripts/version-check.js" 18 | }, 19 | "engines": { 20 | "node": ">=14.17" 21 | }, 22 | "files": [ 23 | "typescript" 24 | ], 25 | "keywords": [ 26 | "tsd", 27 | "typescript", 28 | "typecheck" 29 | ], 30 | "devDependencies": { 31 | "ava": "^3.15.0", 32 | "got": "^11.8.2", 33 | "gunzip-maybe": "^1.4.2", 34 | "make-dir": "^3.1.0", 35 | "redent": "^3.0.0", 36 | "tar-stream": "^2.2.0", 37 | "tsd": "^0.27.0" 38 | }, 39 | "tsd": { 40 | "directory": "test" 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # @tsd/typescript ![CI](https://github.com/tsdjs/typescript/workflows/CI/badge.svg) 2 | 3 | > TypeScript with some extras for type-checking. 4 | 5 | This is a drop-in replacement for [TypeScript](https://github.com/microsoft/TypeScript) meant for programmatic usage only. It does not expose the binaries like `tsc` and `tsserver` because it would override the TypeScript binaries of the project. It exposes extra methods on the internal `TypeChecker` object. 6 | 7 | 8 | ## Install 9 | 10 | ``` 11 | npm install --save-dev @tsd/typescript 12 | ``` 13 | 14 | 15 | ## Usage 16 | 17 | This package is just TypeScript with some private methods exposed that [tsd](https://github.com/SamVerschueren/tsd) needs for enhanced type checking. 18 | 19 | - `isTypeIdenticalTo(a: Type, b: Type)`: Check if two types are identical to each other. [More info...](https://github.com/microsoft/TypeScript/blob/v4.2.4/doc/spec-ARCHIVED.md#3.11.2) 20 | - `isTypeSubtypeOf(a: Type, b: Type)`: Check if type `a` is a subtype of type `b`. [More info...](https://github.com/microsoft/TypeScript/blob/v4.2.4/doc/spec-ARCHIVED.md#3.11.3) 21 | - `isTypeAssignableTo(a: Type, b: Type)`: Check if type `a` is assignable to type `b`. 22 | - `isTypeDerivedFrom(a: Type, b: Type)`: Check if type `a` is derived from type `b`. [More info...](https://github.com/SamVerschueren/tsd-typescript/blob/master/scripts/utils/replacements.js#L65-L74) 23 | - `isTypeComparableTo(a: Type, b: Type)`: Check if type `a` is comparable to type `b`. [More info...](https://github.com/SamVerschueren/tsd-typescript/blob/master/scripts/utils/replacements.js#L77-L86) 24 | - `areTypesComparable(a: Type, b: Type)`: Check if type `a` is comparable to type `b` and `b` is comparable to type `a`. [More info...](https://github.com/SamVerschueren/tsd-typescript/blob/master/scripts/utils/replacements.js#L89-L98) 25 | 26 | 27 | ## Related 28 | 29 | - [tsd](https://github.com/tsdjs/tsd) - Check TypeScript type definitions 30 | -------------------------------------------------------------------------------- /scripts/upgrade.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const fs = require('fs'); 3 | const path = require('path'); 4 | const got = require('got').default; 5 | const makeDir = require('make-dir'); 6 | const tar = require('tar-stream'); 7 | const gunzip = require('gunzip-maybe'); 8 | const redent = require('redent'); 9 | const replacements = require('./utils/replacements'); 10 | const {targetVersion} = require('./utils/version-check'); 11 | 12 | const replacementMap = new Map(Object.entries(replacements)); 13 | 14 | const upgrade = async (version) => { 15 | return new Promise((resolve, reject) => { 16 | // Download the tgz archive 17 | got.stream(`https://registry.npmjs.org/typescript/-/typescript-${version}.tgz`) 18 | .pipe(gunzip()) 19 | .pipe(tar.extract()) 20 | .on('entry', (header, stream, next) => { 21 | const chunks = []; 22 | 23 | stream.on('data', chunk => { 24 | // Put all data chunks in an array. 25 | chunks.push(chunk); 26 | }); 27 | 28 | stream.on('end', () => { 29 | const filename = path.relative('package', header.name) 30 | const filePath = path.join(process.cwd(), 'typescript', filename); 31 | 32 | // Concat all chunks and convert to utf8. 33 | let fileContents = Buffer.concat(chunks).toString('utf8'); 34 | 35 | // Make sure the directory exists before we write the file. 36 | makeDir.sync(path.dirname(filePath)); 37 | 38 | // If the filename is present in the `replacementMap`, start replacing. 39 | if (replacementMap.has(filename)) { 40 | const replacementsList = replacementMap.get(filename); 41 | 42 | for (const replacement of replacementsList) { 43 | // Strip of newlines at the beginning and end of the replacement 44 | const to = replacement.to.replace(/(^\n)|(\n\s*?$)/g, '') 45 | 46 | fileContents = fileContents.replace(replacement.from, redent(to)); 47 | } 48 | } 49 | 50 | // Write the file to disk 51 | fs.writeFileSync(filePath, fileContents, 'utf8'); 52 | 53 | next(); 54 | }); 55 | }) 56 | .on('finish', resolve) 57 | .on('error', reject); 58 | }); 59 | }; 60 | 61 | (async () => { 62 | // Use the version provided, or retrieve the latest version 63 | const version = process.argv[2] || await targetVersion(); 64 | 65 | if (!version) { 66 | // If no version was returned, we don't have to do anything 67 | console.log('Everything is up-to-date'); 68 | 69 | return; 70 | } 71 | 72 | console.log(`New version TypeScript@${version} detected`); 73 | 74 | await upgrade(version); 75 | 76 | console.log(`Upgraded to TypeScript@${version}`); 77 | })(); 78 | -------------------------------------------------------------------------------- /scripts/utils/replacements.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * List of replacements per file. 5 | */ 6 | module.exports = { 7 | 'lib/typescript.js': [ 8 | { 9 | /** 10 | * ([^\n]+): Match all characters expect \n before `var checker`. 11 | * (.*?): Match everything between `var checker = {` and `getNodeCount` 12 | */ 13 | from: /([^\n]+)(?:var|const) checker = {\r?\n(.*?)getNodeCount:/gms, 14 | to: ` 15 | $1var checker = { 16 | $1 /** TSD */ 17 | $1 isTypeIdenticalTo: isTypeIdenticalTo, 18 | $1 isTypeSubtypeOf: isTypeSubtypeOf, 19 | $1 isTypeDerivedFrom: isTypeDerivedFrom, 20 | $1 isTypeComparableTo: isTypeComparableTo, 21 | $1 areTypesComparable: areTypesComparable, 22 | $1 /** END TSD */ 23 | $2getNodeCount: 24 | ` 25 | } 26 | ], 27 | 'lib/typescript.d.ts': [ 28 | { 29 | from: 'export = ts;', 30 | to: ` 31 | /** TSD */ 32 | declare namespace ts { 33 | /** 34 | * Custom interface for the TypeScript \`TypeChecker\` interface. This exports extra methods that we need 35 | * inside \`tsd\`. Use this entity in favour of \`ts.TypeChecker\`. 36 | */ 37 | export interface TypeChecker { 38 | /** 39 | * Two types are considered identical when 40 | * - they are both the \`any\` type, 41 | * - they are the same primitive type, 42 | * - they are the same type parameter, 43 | * - they are union types with identical sets of constituent types, or 44 | * - they are intersection types with identical sets of constituent types, or 45 | * - they are object types with identical sets of members. 46 | * 47 | * This relationship is bidirectional. 48 | * See [here](https://github.com/microsoft/TypeScript/blob/v4.1.2/doc/spec-ARCHIVED.md#3.11.2) for more information. 49 | */ 50 | isTypeIdenticalTo(source: Type, target: Type): boolean; 51 | 52 | /** 53 | * S is a subtype of a type T, and T is a supertype of S, if S has no excess properties with respect 54 | * to T ([3.11.5](https://github.com/microsoft/TypeScript/blob/v4.1.2/doc/spec-ARCHIVED.md#3.11.5)) and one 55 | * of the following is true https://github.com/microsoft/TypeScript/blob/v4.1.2/doc/spec-ARCHIVED.md#3.11.3. 56 | */ 57 | isTypeSubtypeOf(source: Type, target: Type): boolean; 58 | 59 | /** 60 | * An object type S is considered to be derived from an object type T if 61 | * - S is a union type and every constituent of S is derived from T, 62 | * - T is a union type and S is derived from at least one constituent of T, or 63 | * - S is a type variable with a base constraint that is derived from T, 64 | * - T is one of the global types Object and Function and S is a subtype of T, or 65 | * - T occurs directly or indirectly in an 'extends' clause of S. 66 | * 67 | * Note that this check ignores type parameters and only considers the inheritance hierarchy. 68 | */ 69 | isTypeDerivedFrom(source: Type, target: Type): boolean; 70 | 71 | /** 72 | * This is *not* a bi-directional relationship. 73 | * If one needs to check both directions for comparability, use a second call to this function or 'areTypesComparable'. 74 | * 75 | * A type S is comparable to a type T if some (but not necessarily all) of the possible values of S are also possible values of T. 76 | * It is used to check following cases: 77 | * - the types of the left and right sides of equality/inequality operators (\`===\`, \`!==\`, \`==\`, \`!=\`). 78 | * - the types of \`case\` clause expressions and their respective \`switch\` expressions. 79 | * - the type of an expression in a type assertion with the type being asserted. 80 | */ 81 | isTypeComparableTo(source: Type, target: Type): boolean; 82 | 83 | /** 84 | * This is a bi-directional relationship. 85 | * If one needs to check one direction for comparability, use 'isTypeComparableTo'. 86 | * 87 | * A type S is comparable to a type T if some (but not necessarily all) of the possible values of S are also possible values of T. 88 | * It is used to check following cases: 89 | * - the types of the left and right sides of equality/inequality operators (\`===\`, \`!==\`, \`==\`, \`!=\`). 90 | * - the types of \`case\` clause expressions and their respective \`switch\` expressions. 91 | * - the type of an expression in a type assertion with the type being asserted. 92 | */ 93 | areTypesComparable(source: Type, target: Type): boolean; 94 | } 95 | } 96 | /** END TSD */ 97 | 98 | export = ts; 99 | ` 100 | } 101 | ] 102 | }; 103 | -------------------------------------------------------------------------------- /scripts/utils/version-check.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const got = require('got').default; 3 | const pkg = require('../../package.json'); 4 | 5 | /** 6 | * Returns the latest TypeScript version. If we are up-to-date with the latest version, it will return nothing. 7 | */ 8 | exports.targetVersion = async () => { 9 | // Retrieve the tags fro the npm registry 10 | const body = await got.get('https://registry.npmjs.org/typescript').json(); 11 | 12 | // Read the latest tag from `dist-tags` 13 | const {latest} = body['dist-tags']; 14 | 15 | if (latest === pkg.version) { 16 | return; 17 | } 18 | 19 | return latest; 20 | }; 21 | -------------------------------------------------------------------------------- /scripts/version-check.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const {targetVersion} = require('./utils/version-check'); 3 | 4 | (async () => { 5 | const newVersion = await targetVersion(); 6 | 7 | if (newVersion) { 8 | // Only print out the version if it is new 9 | console.log(newVersion); 10 | }; 11 | })(); 12 | -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const test = require('ava'); 3 | const {createProgram} = require('..'); 4 | 5 | const typeChecker = createProgram([], {}).getTypeChecker(); 6 | 7 | function macro(t, method) { 8 | t.true(typeof typeChecker[method] === 'function'); 9 | } 10 | 11 | macro.title = (_, method) => method; 12 | 13 | test(macro, 'isTypeIdenticalTo'); 14 | test(macro, 'isTypeSubtypeOf'); 15 | test(macro, 'isTypeAssignableTo'); 16 | test(macro, 'isTypeDerivedFrom'); 17 | test(macro, 'isTypeComparableTo'); 18 | test(macro, 'areTypesComparable'); 19 | -------------------------------------------------------------------------------- /test/typescript.test-d.ts: -------------------------------------------------------------------------------- 1 | import { expectType } from 'tsd'; 2 | import { TypeChecker, Type } from '..'; 3 | 4 | let typeChecker = {} as TypeChecker; 5 | 6 | let aType = {} as Type; 7 | let bType = {} as Type; 8 | 9 | expectType<(a: Type, b: Type) => boolean>(typeChecker.isTypeIdenticalTo); 10 | expectType<(a: Type, b: Type) => boolean>(typeChecker.isTypeSubtypeOf); 11 | expectType<(a: Type, b: Type) => boolean>(typeChecker.isTypeAssignableTo); 12 | expectType<(a: Type, b: Type) => boolean>(typeChecker.isTypeDerivedFrom); 13 | expectType<(a: Type, b: Type) => boolean>(typeChecker.isTypeComparableTo); 14 | expectType<(a: Type, b: Type) => boolean>(typeChecker.areTypesComparable); 15 | 16 | expectType(typeChecker.isTypeIdenticalTo(aType, bType)); 17 | expectType(typeChecker.isTypeSubtypeOf(aType, bType)); 18 | expectType(typeChecker.isTypeAssignableTo(aType, bType)); 19 | expectType(typeChecker.isTypeDerivedFrom(aType, bType)); 20 | expectType(typeChecker.isTypeComparableTo(aType, bType)); 21 | expectType(typeChecker.areTypesComparable(aType, bType)); 22 | -------------------------------------------------------------------------------- /typescript/.yarnrc: -------------------------------------------------------------------------------- 1 | --install.no-lockfile true 2 | -------------------------------------------------------------------------------- /typescript/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. 2 | -------------------------------------------------------------------------------- /typescript/CopyrightNotice.txt: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | -------------------------------------------------------------------------------- /typescript/README.md: -------------------------------------------------------------------------------- 1 | 2 | # TypeScript 3 | 4 | [![CI](https://github.com/microsoft/TypeScript/actions/workflows/ci.yml/badge.svg)](https://github.com/microsoft/TypeScript/actions/workflows/ci.yml) 5 | [![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript) 6 | [![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript) 7 | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/microsoft/TypeScript/badge)](https://securityscorecards.dev/viewer/?uri=github.com/microsoft/TypeScript) 8 | 9 | 10 | [TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescript). 11 | 12 | Find others who are using TypeScript at [our community page](https://www.typescriptlang.org/community/). 13 | 14 | ## Installing 15 | 16 | For the latest stable version: 17 | 18 | ```bash 19 | npm install -D typescript 20 | ``` 21 | 22 | For our nightly builds: 23 | 24 | ```bash 25 | npm install -D typescript@next 26 | ``` 27 | 28 | ## Contribute 29 | 30 | There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md) to TypeScript. 31 | * [Submit bugs](https://github.com/microsoft/TypeScript/issues) and help us verify fixes as they are checked in. 32 | * Review the [source code changes](https://github.com/microsoft/TypeScript/pulls). 33 | * Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript). 34 | * Help each other in the [TypeScript Community Discord](https://discord.gg/typescript). 35 | * Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter. 36 | * [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md). 37 | 38 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see 39 | the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) 40 | with any additional questions or comments. 41 | 42 | ## Documentation 43 | 44 | * [TypeScript in 5 minutes](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html) 45 | * [Programming handbook](https://www.typescriptlang.org/docs/handbook/intro.html) 46 | * [Homepage](https://www.typescriptlang.org/) 47 | 48 | ## Roadmap 49 | 50 | For details on our planned features and future direction, please refer to our [roadmap](https://github.com/microsoft/TypeScript/wiki/Roadmap). 51 | -------------------------------------------------------------------------------- /typescript/bin/tsc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../lib/tsc.js') 3 | -------------------------------------------------------------------------------- /typescript/bin/tsserver: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../lib/tsserver.js') 3 | -------------------------------------------------------------------------------- /typescript/lib/README.md: -------------------------------------------------------------------------------- 1 | # Read This! 2 | 3 | **These files are not meant to be edited by hand.** 4 | If you need to make modifications, the respective files should be changed within the repository's top-level `src` directory. 5 | Running `hereby LKG` will then appropriately update the files in this directory. 6 | -------------------------------------------------------------------------------- /typescript/lib/cancellationToken.js: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | "use strict"; 18 | var __create = Object.create; 19 | var __defProp = Object.defineProperty; 20 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 21 | var __getOwnPropNames = Object.getOwnPropertyNames; 22 | var __getProtoOf = Object.getPrototypeOf; 23 | var __hasOwnProp = Object.prototype.hasOwnProperty; 24 | var __copyProps = (to, from, except, desc) => { 25 | if (from && typeof from === "object" || typeof from === "function") { 26 | for (let key of __getOwnPropNames(from)) 27 | if (!__hasOwnProp.call(to, key) && key !== except) 28 | __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 29 | } 30 | return to; 31 | }; 32 | var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( 33 | // If the importer is in node compatibility mode or this is not an ESM 34 | // file that has been converted to a CommonJS file using a Babel- 35 | // compatible transform (i.e. "__esModule" has not been set), then set 36 | // "default" to the CommonJS "module.exports" for node compatibility. 37 | isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, 38 | mod 39 | )); 40 | 41 | // src/cancellationToken/cancellationToken.ts 42 | var fs = __toESM(require("fs")); 43 | function pipeExists(name) { 44 | return fs.existsSync(name); 45 | } 46 | function createCancellationToken(args) { 47 | let cancellationPipeName; 48 | for (let i = 0; i < args.length - 1; i++) { 49 | if (args[i] === "--cancellationPipeName") { 50 | cancellationPipeName = args[i + 1]; 51 | break; 52 | } 53 | } 54 | if (!cancellationPipeName) { 55 | return { 56 | isCancellationRequested: () => false, 57 | setRequest: (_requestId) => void 0, 58 | resetRequest: (_requestId) => void 0 59 | }; 60 | } 61 | if (cancellationPipeName.charAt(cancellationPipeName.length - 1) === "*") { 62 | const namePrefix = cancellationPipeName.slice(0, -1); 63 | if (namePrefix.length === 0 || namePrefix.includes("*")) { 64 | throw new Error("Invalid name for template cancellation pipe: it should have length greater than 2 characters and contain only one '*'."); 65 | } 66 | let perRequestPipeName; 67 | let currentRequestId; 68 | return { 69 | isCancellationRequested: () => perRequestPipeName !== void 0 && pipeExists(perRequestPipeName), 70 | setRequest(requestId) { 71 | currentRequestId = requestId; 72 | perRequestPipeName = namePrefix + requestId; 73 | }, 74 | resetRequest(requestId) { 75 | if (currentRequestId !== requestId) { 76 | throw new Error(`Mismatched request id, expected ${currentRequestId}, actual ${requestId}`); 77 | } 78 | perRequestPipeName = void 0; 79 | } 80 | }; 81 | } else { 82 | return { 83 | isCancellationRequested: () => pipeExists(cancellationPipeName), 84 | setRequest: (_requestId) => void 0, 85 | resetRequest: (_requestId) => void 0 86 | }; 87 | } 88 | } 89 | module.exports = createCancellationToken; 90 | //# sourceMappingURL=cancellationToken.js.map 91 | -------------------------------------------------------------------------------- /typescript/lib/lib.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2015.collection.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface Map { 20 | clear(): void; 21 | /** 22 | * @returns true if an element in the Map existed and has been removed, or false if the element does not exist. 23 | */ 24 | delete(key: K): boolean; 25 | /** 26 | * Executes a provided function once per each key/value pair in the Map, in insertion order. 27 | */ 28 | forEach(callbackfn: (value: V, key: K, map: Map) => void, thisArg?: any): void; 29 | /** 30 | * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map. 31 | * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned. 32 | */ 33 | get(key: K): V | undefined; 34 | /** 35 | * @returns boolean indicating whether an element with the specified key exists or not. 36 | */ 37 | has(key: K): boolean; 38 | /** 39 | * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated. 40 | */ 41 | set(key: K, value: V): this; 42 | /** 43 | * @returns the number of elements in the Map. 44 | */ 45 | readonly size: number; 46 | } 47 | 48 | interface MapConstructor { 49 | new (): Map; 50 | new (entries?: readonly (readonly [K, V])[] | null): Map; 51 | readonly prototype: Map; 52 | } 53 | declare var Map: MapConstructor; 54 | 55 | interface ReadonlyMap { 56 | forEach(callbackfn: (value: V, key: K, map: ReadonlyMap) => void, thisArg?: any): void; 57 | get(key: K): V | undefined; 58 | has(key: K): boolean; 59 | readonly size: number; 60 | } 61 | 62 | interface WeakMap { 63 | /** 64 | * Removes the specified element from the WeakMap. 65 | * @returns true if the element was successfully removed, or false if it was not present. 66 | */ 67 | delete(key: K): boolean; 68 | /** 69 | * @returns a specified element. 70 | */ 71 | get(key: K): V | undefined; 72 | /** 73 | * @returns a boolean indicating whether an element with the specified key exists or not. 74 | */ 75 | has(key: K): boolean; 76 | /** 77 | * Adds a new element with a specified key and value. 78 | * @param key Must be an object or symbol. 79 | */ 80 | set(key: K, value: V): this; 81 | } 82 | 83 | interface WeakMapConstructor { 84 | new (entries?: readonly (readonly [K, V])[] | null): WeakMap; 85 | readonly prototype: WeakMap; 86 | } 87 | declare var WeakMap: WeakMapConstructor; 88 | 89 | interface Set { 90 | /** 91 | * Appends a new element with a specified value to the end of the Set. 92 | */ 93 | add(value: T): this; 94 | 95 | clear(): void; 96 | /** 97 | * Removes a specified value from the Set. 98 | * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist. 99 | */ 100 | delete(value: T): boolean; 101 | /** 102 | * Executes a provided function once per each value in the Set object, in insertion order. 103 | */ 104 | forEach(callbackfn: (value: T, value2: T, set: Set) => void, thisArg?: any): void; 105 | /** 106 | * @returns a boolean indicating whether an element with the specified value exists in the Set or not. 107 | */ 108 | has(value: T): boolean; 109 | /** 110 | * @returns the number of (unique) elements in Set. 111 | */ 112 | readonly size: number; 113 | } 114 | 115 | interface SetConstructor { 116 | new (values?: readonly T[] | null): Set; 117 | readonly prototype: Set; 118 | } 119 | declare var Set: SetConstructor; 120 | 121 | interface ReadonlySet { 122 | forEach(callbackfn: (value: T, value2: T, set: ReadonlySet) => void, thisArg?: any): void; 123 | has(value: T): boolean; 124 | readonly size: number; 125 | } 126 | 127 | interface WeakSet { 128 | /** 129 | * Appends a new value to the end of the WeakSet. 130 | */ 131 | add(value: T): this; 132 | /** 133 | * Removes the specified element from the WeakSet. 134 | * @returns Returns true if the element existed and has been removed, or false if the element does not exist. 135 | */ 136 | delete(value: T): boolean; 137 | /** 138 | * @returns a boolean indicating whether a value exists in the WeakSet or not. 139 | */ 140 | has(value: T): boolean; 141 | } 142 | 143 | interface WeakSetConstructor { 144 | new (values?: readonly T[] | null): WeakSet; 145 | readonly prototype: WeakSet; 146 | } 147 | declare var WeakSet: WeakSetConstructor; 148 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2015.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | /// 27 | /// 28 | /// 29 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2015.generator.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | 21 | interface Generator extends IteratorObject { 22 | // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. 23 | next(...[value]: [] | [TNext]): IteratorResult; 24 | return(value: TReturn): IteratorResult; 25 | throw(e: any): IteratorResult; 26 | [Symbol.iterator](): Generator; 27 | } 28 | 29 | interface GeneratorFunction { 30 | /** 31 | * Creates a new Generator object. 32 | * @param args A list of arguments the function accepts. 33 | */ 34 | new (...args: any[]): Generator; 35 | /** 36 | * Creates a new Generator object. 37 | * @param args A list of arguments the function accepts. 38 | */ 39 | (...args: any[]): Generator; 40 | /** 41 | * The length of the arguments. 42 | */ 43 | readonly length: number; 44 | /** 45 | * Returns the name of the function. 46 | */ 47 | readonly name: string; 48 | /** 49 | * A reference to the prototype. 50 | */ 51 | readonly prototype: Generator; 52 | } 53 | 54 | interface GeneratorFunctionConstructor { 55 | /** 56 | * Creates a new Generator function. 57 | * @param args A list of arguments the function accepts. 58 | */ 59 | new (...args: string[]): GeneratorFunction; 60 | /** 61 | * Creates a new Generator function. 62 | * @param args A list of arguments the function accepts. 63 | */ 64 | (...args: string[]): GeneratorFunction; 65 | /** 66 | * The length of the arguments. 67 | */ 68 | readonly length: number; 69 | /** 70 | * Returns the name of the function. 71 | */ 72 | readonly name: string; 73 | /** 74 | * A reference to the prototype. 75 | */ 76 | readonly prototype: GeneratorFunction; 77 | } 78 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2015.promise.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface PromiseConstructor { 20 | /** 21 | * A reference to the prototype. 22 | */ 23 | readonly prototype: Promise; 24 | 25 | /** 26 | * Creates a new Promise. 27 | * @param executor A callback used to initialize the promise. This callback is passed two arguments: 28 | * a resolve callback used to resolve the promise with a value or the result of another promise, 29 | * and a reject callback used to reject the promise with a provided reason or error. 30 | */ 31 | new (executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void) => void): Promise; 32 | 33 | /** 34 | * Creates a Promise that is resolved with an array of results when all of the provided Promises 35 | * resolve, or rejected when any Promise is rejected. 36 | * @param values An array of Promises. 37 | * @returns A new Promise. 38 | */ 39 | all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; 40 | 41 | // see: lib.es2015.iterable.d.ts 42 | // all(values: Iterable>): Promise[]>; 43 | 44 | /** 45 | * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved 46 | * or rejected. 47 | * @param values An array of Promises. 48 | * @returns A new Promise. 49 | */ 50 | race(values: T): Promise>; 51 | 52 | // see: lib.es2015.iterable.d.ts 53 | // race(values: Iterable>): Promise>; 54 | 55 | /** 56 | * Creates a new rejected promise for the provided reason. 57 | * @param reason The reason the promise was rejected. 58 | * @returns A new rejected Promise. 59 | */ 60 | reject(reason?: any): Promise; 61 | 62 | /** 63 | * Creates a new resolved promise. 64 | * @returns A resolved promise. 65 | */ 66 | resolve(): Promise; 67 | /** 68 | * Creates a new resolved promise for the provided value. 69 | * @param value A promise. 70 | * @returns A promise whose internal state matches the provided promise. 71 | */ 72 | resolve(value: T): Promise>; 73 | /** 74 | * Creates a new resolved promise for the provided value. 75 | * @param value A promise. 76 | * @returns A promise whose internal state matches the provided promise. 77 | */ 78 | resolve(value: T | PromiseLike): Promise>; 79 | } 80 | 81 | declare var Promise: PromiseConstructor; 82 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2015.proxy.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface ProxyHandler { 20 | /** 21 | * A trap method for a function call. 22 | * @param target The original callable object which is being proxied. 23 | */ 24 | apply?(target: T, thisArg: any, argArray: any[]): any; 25 | 26 | /** 27 | * A trap for the `new` operator. 28 | * @param target The original object which is being proxied. 29 | * @param newTarget The constructor that was originally called. 30 | */ 31 | construct?(target: T, argArray: any[], newTarget: Function): object; 32 | 33 | /** 34 | * A trap for `Object.defineProperty()`. 35 | * @param target The original object which is being proxied. 36 | * @returns A `Boolean` indicating whether or not the property has been defined. 37 | */ 38 | defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean; 39 | 40 | /** 41 | * A trap for the `delete` operator. 42 | * @param target The original object which is being proxied. 43 | * @param p The name or `Symbol` of the property to delete. 44 | * @returns A `Boolean` indicating whether or not the property was deleted. 45 | */ 46 | deleteProperty?(target: T, p: string | symbol): boolean; 47 | 48 | /** 49 | * A trap for getting a property value. 50 | * @param target The original object which is being proxied. 51 | * @param p The name or `Symbol` of the property to get. 52 | * @param receiver The proxy or an object that inherits from the proxy. 53 | */ 54 | get?(target: T, p: string | symbol, receiver: any): any; 55 | 56 | /** 57 | * A trap for `Object.getOwnPropertyDescriptor()`. 58 | * @param target The original object which is being proxied. 59 | * @param p The name of the property whose description should be retrieved. 60 | */ 61 | getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined; 62 | 63 | /** 64 | * A trap for the `[[GetPrototypeOf]]` internal method. 65 | * @param target The original object which is being proxied. 66 | */ 67 | getPrototypeOf?(target: T): object | null; 68 | 69 | /** 70 | * A trap for the `in` operator. 71 | * @param target The original object which is being proxied. 72 | * @param p The name or `Symbol` of the property to check for existence. 73 | */ 74 | has?(target: T, p: string | symbol): boolean; 75 | 76 | /** 77 | * A trap for `Object.isExtensible()`. 78 | * @param target The original object which is being proxied. 79 | */ 80 | isExtensible?(target: T): boolean; 81 | 82 | /** 83 | * A trap for `Reflect.ownKeys()`. 84 | * @param target The original object which is being proxied. 85 | */ 86 | ownKeys?(target: T): ArrayLike; 87 | 88 | /** 89 | * A trap for `Object.preventExtensions()`. 90 | * @param target The original object which is being proxied. 91 | */ 92 | preventExtensions?(target: T): boolean; 93 | 94 | /** 95 | * A trap for setting a property value. 96 | * @param target The original object which is being proxied. 97 | * @param p The name or `Symbol` of the property to set. 98 | * @param receiver The object to which the assignment was originally directed. 99 | * @returns A `Boolean` indicating whether or not the property was set. 100 | */ 101 | set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean; 102 | 103 | /** 104 | * A trap for `Object.setPrototypeOf()`. 105 | * @param target The original object which is being proxied. 106 | * @param newPrototype The object's new prototype or `null`. 107 | */ 108 | setPrototypeOf?(target: T, v: object | null): boolean; 109 | } 110 | 111 | interface ProxyConstructor { 112 | /** 113 | * Creates a revocable Proxy object. 114 | * @param target A target object to wrap with Proxy. 115 | * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it. 116 | */ 117 | revocable(target: T, handler: ProxyHandler): { proxy: T; revoke: () => void; }; 118 | 119 | /** 120 | * Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the 121 | * original object, but which may redefine fundamental Object operations like getting, setting, and defining 122 | * properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs. 123 | * @param target A target object to wrap with Proxy. 124 | * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it. 125 | */ 126 | new (target: T, handler: ProxyHandler): T; 127 | } 128 | declare var Proxy: ProxyConstructor; 129 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2015.symbol.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface SymbolConstructor { 20 | /** 21 | * A reference to the prototype. 22 | */ 23 | readonly prototype: Symbol; 24 | 25 | /** 26 | * Returns a new unique Symbol value. 27 | * @param description Description of the new Symbol object. 28 | */ 29 | (description?: string | number): symbol; 30 | 31 | /** 32 | * Returns a Symbol object from the global symbol registry matching the given key if found. 33 | * Otherwise, returns a new symbol with this key. 34 | * @param key key to search for. 35 | */ 36 | for(key: string): symbol; 37 | 38 | /** 39 | * Returns a key from the global symbol registry matching the given Symbol if found. 40 | * Otherwise, returns a undefined. 41 | * @param sym Symbol to find the key for. 42 | */ 43 | keyFor(sym: symbol): string | undefined; 44 | } 45 | 46 | declare var Symbol: SymbolConstructor; 47 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2016.array.include.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface Array { 20 | /** 21 | * Determines whether an array includes a certain element, returning true or false as appropriate. 22 | * @param searchElement The element to search for. 23 | * @param fromIndex The position in this array at which to begin searching for searchElement. 24 | */ 25 | includes(searchElement: T, fromIndex?: number): boolean; 26 | } 27 | 28 | interface ReadonlyArray { 29 | /** 30 | * Determines whether an array includes a certain element, returning true or false as appropriate. 31 | * @param searchElement The element to search for. 32 | * @param fromIndex The position in this array at which to begin searching for searchElement. 33 | */ 34 | includes(searchElement: T, fromIndex?: number): boolean; 35 | } 36 | 37 | interface Int8Array { 38 | /** 39 | * Determines whether an array includes a certain element, returning true or false as appropriate. 40 | * @param searchElement The element to search for. 41 | * @param fromIndex The position in this array at which to begin searching for searchElement. 42 | */ 43 | includes(searchElement: number, fromIndex?: number): boolean; 44 | } 45 | 46 | interface Uint8Array { 47 | /** 48 | * Determines whether an array includes a certain element, returning true or false as appropriate. 49 | * @param searchElement The element to search for. 50 | * @param fromIndex The position in this array at which to begin searching for searchElement. 51 | */ 52 | includes(searchElement: number, fromIndex?: number): boolean; 53 | } 54 | 55 | interface Uint8ClampedArray { 56 | /** 57 | * Determines whether an array includes a certain element, returning true or false as appropriate. 58 | * @param searchElement The element to search for. 59 | * @param fromIndex The position in this array at which to begin searching for searchElement. 60 | */ 61 | includes(searchElement: number, fromIndex?: number): boolean; 62 | } 63 | 64 | interface Int16Array { 65 | /** 66 | * Determines whether an array includes a certain element, returning true or false as appropriate. 67 | * @param searchElement The element to search for. 68 | * @param fromIndex The position in this array at which to begin searching for searchElement. 69 | */ 70 | includes(searchElement: number, fromIndex?: number): boolean; 71 | } 72 | 73 | interface Uint16Array { 74 | /** 75 | * Determines whether an array includes a certain element, returning true or false as appropriate. 76 | * @param searchElement The element to search for. 77 | * @param fromIndex The position in this array at which to begin searching for searchElement. 78 | */ 79 | includes(searchElement: number, fromIndex?: number): boolean; 80 | } 81 | 82 | interface Int32Array { 83 | /** 84 | * Determines whether an array includes a certain element, returning true or false as appropriate. 85 | * @param searchElement The element to search for. 86 | * @param fromIndex The position in this array at which to begin searching for searchElement. 87 | */ 88 | includes(searchElement: number, fromIndex?: number): boolean; 89 | } 90 | 91 | interface Uint32Array { 92 | /** 93 | * Determines whether an array includes a certain element, returning true or false as appropriate. 94 | * @param searchElement The element to search for. 95 | * @param fromIndex The position in this array at which to begin searching for searchElement. 96 | */ 97 | includes(searchElement: number, fromIndex?: number): boolean; 98 | } 99 | 100 | interface Float32Array { 101 | /** 102 | * Determines whether an array includes a certain element, returning true or false as appropriate. 103 | * @param searchElement The element to search for. 104 | * @param fromIndex The position in this array at which to begin searching for searchElement. 105 | */ 106 | includes(searchElement: number, fromIndex?: number): boolean; 107 | } 108 | 109 | interface Float64Array { 110 | /** 111 | * Determines whether an array includes a certain element, returning true or false as appropriate. 112 | * @param searchElement The element to search for. 113 | * @param fromIndex The position in this array at which to begin searching for searchElement. 114 | */ 115 | includes(searchElement: number, fromIndex?: number): boolean; 116 | } 117 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2016.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2016.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2017.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | /// 27 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2017.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2017.intl.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | declare namespace Intl { 20 | interface DateTimeFormatPartTypesRegistry { 21 | day: any; 22 | dayPeriod: any; 23 | era: any; 24 | hour: any; 25 | literal: any; 26 | minute: any; 27 | month: any; 28 | second: any; 29 | timeZoneName: any; 30 | weekday: any; 31 | year: any; 32 | } 33 | 34 | type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry; 35 | 36 | interface DateTimeFormatPart { 37 | type: DateTimeFormatPartTypes; 38 | value: string; 39 | } 40 | 41 | interface DateTimeFormat { 42 | formatToParts(date?: Date | number): DateTimeFormatPart[]; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2017.object.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface ObjectConstructor { 20 | /** 21 | * Returns an array of values of the enumerable own properties of an object 22 | * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. 23 | */ 24 | values(o: { [s: string]: T; } | ArrayLike): T[]; 25 | 26 | /** 27 | * Returns an array of values of the enumerable own properties of an object 28 | * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. 29 | */ 30 | values(o: {}): any[]; 31 | 32 | /** 33 | * Returns an array of key/values of the enumerable own properties of an object 34 | * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. 35 | */ 36 | entries(o: { [s: string]: T; } | ArrayLike): [string, T][]; 37 | 38 | /** 39 | * Returns an array of key/values of the enumerable own properties of an object 40 | * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. 41 | */ 42 | entries(o: {}): [string, any][]; 43 | 44 | /** 45 | * Returns an object containing all own property descriptors of an object 46 | * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. 47 | */ 48 | getOwnPropertyDescriptors(o: T): { [P in keyof T]: TypedPropertyDescriptor; } & { [x: string]: PropertyDescriptor; }; 49 | } 50 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2017.string.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface String { 20 | /** 21 | * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. 22 | * The padding is applied from the start (left) of the current string. 23 | * 24 | * @param maxLength The length of the resulting string once the current string has been padded. 25 | * If this parameter is smaller than the current string's length, the current string will be returned as it is. 26 | * 27 | * @param fillString The string to pad the current string with. 28 | * If this string is too long, it will be truncated and the left-most part will be applied. 29 | * The default value for this parameter is " " (U+0020). 30 | */ 31 | padStart(maxLength: number, fillString?: string): string; 32 | 33 | /** 34 | * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. 35 | * The padding is applied from the end (right) of the current string. 36 | * 37 | * @param maxLength The length of the resulting string once the current string has been padded. 38 | * If this parameter is smaller than the current string's length, the current string will be returned as it is. 39 | * 40 | * @param fillString The string to pad the current string with. 41 | * If this string is too long, it will be truncated and the left-most part will be applied. 42 | * The default value for this parameter is " " (U+0020). 43 | */ 44 | padEnd(maxLength: number, fillString?: string): string; 45 | } 46 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2017.typedarrays.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface Int8ArrayConstructor { 20 | new (): Int8Array; 21 | } 22 | 23 | interface Uint8ArrayConstructor { 24 | new (): Uint8Array; 25 | } 26 | 27 | interface Uint8ClampedArrayConstructor { 28 | new (): Uint8ClampedArray; 29 | } 30 | 31 | interface Int16ArrayConstructor { 32 | new (): Int16Array; 33 | } 34 | 35 | interface Uint16ArrayConstructor { 36 | new (): Uint16Array; 37 | } 38 | 39 | interface Int32ArrayConstructor { 40 | new (): Int32Array; 41 | } 42 | 43 | interface Uint32ArrayConstructor { 44 | new (): Uint32Array; 45 | } 46 | 47 | interface Float32ArrayConstructor { 48 | new (): Float32Array; 49 | } 50 | 51 | interface Float64ArrayConstructor { 52 | new (): Float64Array; 53 | } 54 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2018.asyncgenerator.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | 21 | interface AsyncGenerator extends AsyncIteratorObject { 22 | // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. 23 | next(...[value]: [] | [TNext]): Promise>; 24 | return(value: TReturn | PromiseLike): Promise>; 25 | throw(e: any): Promise>; 26 | [Symbol.asyncIterator](): AsyncGenerator; 27 | } 28 | 29 | interface AsyncGeneratorFunction { 30 | /** 31 | * Creates a new AsyncGenerator object. 32 | * @param args A list of arguments the function accepts. 33 | */ 34 | new (...args: any[]): AsyncGenerator; 35 | /** 36 | * Creates a new AsyncGenerator object. 37 | * @param args A list of arguments the function accepts. 38 | */ 39 | (...args: any[]): AsyncGenerator; 40 | /** 41 | * The length of the arguments. 42 | */ 43 | readonly length: number; 44 | /** 45 | * Returns the name of the function. 46 | */ 47 | readonly name: string; 48 | /** 49 | * A reference to the prototype. 50 | */ 51 | readonly prototype: AsyncGenerator; 52 | } 53 | 54 | interface AsyncGeneratorFunctionConstructor { 55 | /** 56 | * Creates a new AsyncGenerator function. 57 | * @param args A list of arguments the function accepts. 58 | */ 59 | new (...args: string[]): AsyncGeneratorFunction; 60 | /** 61 | * Creates a new AsyncGenerator function. 62 | * @param args A list of arguments the function accepts. 63 | */ 64 | (...args: string[]): AsyncGeneratorFunction; 65 | /** 66 | * The length of the arguments. 67 | */ 68 | readonly length: number; 69 | /** 70 | * Returns the name of the function. 71 | */ 72 | readonly name: string; 73 | /** 74 | * A reference to the prototype. 75 | */ 76 | readonly prototype: AsyncGeneratorFunction; 77 | } 78 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2018.asynciterable.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | 22 | interface SymbolConstructor { 23 | /** 24 | * A method that returns the default async iterator for an object. Called by the semantics of 25 | * the for-await-of statement. 26 | */ 27 | readonly asyncIterator: unique symbol; 28 | } 29 | 30 | interface AsyncIterator { 31 | // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. 32 | next(...[value]: [] | [TNext]): Promise>; 33 | return?(value?: TReturn | PromiseLike): Promise>; 34 | throw?(e?: any): Promise>; 35 | } 36 | 37 | interface AsyncIterable { 38 | [Symbol.asyncIterator](): AsyncIterator; 39 | } 40 | 41 | /** 42 | * Describes a user-defined {@link AsyncIterator} that is also async iterable. 43 | */ 44 | interface AsyncIterableIterator extends AsyncIterator { 45 | [Symbol.asyncIterator](): AsyncIterableIterator; 46 | } 47 | 48 | /** 49 | * Describes an {@link AsyncIterator} produced by the runtime that inherits from the intrinsic `AsyncIterator.prototype`. 50 | */ 51 | interface AsyncIteratorObject extends AsyncIterator { 52 | [Symbol.asyncIterator](): AsyncIteratorObject; 53 | } 54 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2018.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2018.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2018.intl.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | declare namespace Intl { 20 | // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories 21 | type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other"; 22 | type PluralRuleType = "cardinal" | "ordinal"; 23 | 24 | interface PluralRulesOptions { 25 | localeMatcher?: "lookup" | "best fit" | undefined; 26 | type?: PluralRuleType | undefined; 27 | minimumIntegerDigits?: number | undefined; 28 | minimumFractionDigits?: number | undefined; 29 | maximumFractionDigits?: number | undefined; 30 | minimumSignificantDigits?: number | undefined; 31 | maximumSignificantDigits?: number | undefined; 32 | } 33 | 34 | interface ResolvedPluralRulesOptions { 35 | locale: string; 36 | pluralCategories: LDMLPluralRule[]; 37 | type: PluralRuleType; 38 | minimumIntegerDigits: number; 39 | minimumFractionDigits: number; 40 | maximumFractionDigits: number; 41 | minimumSignificantDigits?: number; 42 | maximumSignificantDigits?: number; 43 | } 44 | 45 | interface PluralRules { 46 | resolvedOptions(): ResolvedPluralRulesOptions; 47 | select(n: number): LDMLPluralRule; 48 | } 49 | 50 | interface PluralRulesConstructor { 51 | new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules; 52 | (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules; 53 | supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[]; 54 | } 55 | 56 | const PluralRules: PluralRulesConstructor; 57 | 58 | interface NumberFormatPartTypeRegistry { 59 | literal: never; 60 | nan: never; 61 | infinity: never; 62 | percent: never; 63 | integer: never; 64 | group: never; 65 | decimal: never; 66 | fraction: never; 67 | plusSign: never; 68 | minusSign: never; 69 | percentSign: never; 70 | currency: never; 71 | } 72 | 73 | type NumberFormatPartTypes = keyof NumberFormatPartTypeRegistry; 74 | 75 | interface NumberFormatPart { 76 | type: NumberFormatPartTypes; 77 | value: string; 78 | } 79 | 80 | interface NumberFormat { 81 | formatToParts(number?: number | bigint): NumberFormatPart[]; 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2018.promise.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /** 20 | * Represents the completion of an asynchronous operation 21 | */ 22 | interface Promise { 23 | /** 24 | * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The 25 | * resolved value cannot be modified from the callback. 26 | * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). 27 | * @returns A Promise for the completion of the callback. 28 | */ 29 | finally(onfinally?: (() => void) | undefined | null): Promise; 30 | } 31 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2018.regexp.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface RegExpMatchArray { 20 | groups?: { 21 | [key: string]: string; 22 | }; 23 | } 24 | 25 | interface RegExpExecArray { 26 | groups?: { 27 | [key: string]: string; 28 | }; 29 | } 30 | 31 | interface RegExp { 32 | /** 33 | * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression. 34 | * Default is false. Read-only. 35 | */ 36 | readonly dotAll: boolean; 37 | } 38 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2019.array.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | type FlatArray = { 20 | done: Arr; 21 | recur: Arr extends ReadonlyArray ? FlatArray 22 | : Arr; 23 | }[Depth extends -1 ? "done" : "recur"]; 24 | 25 | interface ReadonlyArray { 26 | /** 27 | * Calls a defined callback function on each element of an array. Then, flattens the result into 28 | * a new array. 29 | * This is identical to a map followed by flat with depth 1. 30 | * 31 | * @param callback A function that accepts up to three arguments. The flatMap method calls the 32 | * callback function one time for each element in the array. 33 | * @param thisArg An object to which the this keyword can refer in the callback function. If 34 | * thisArg is omitted, undefined is used as the this value. 35 | */ 36 | flatMap( 37 | callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray, 38 | thisArg?: This, 39 | ): U[]; 40 | 41 | /** 42 | * Returns a new array with all sub-array elements concatenated into it recursively up to the 43 | * specified depth. 44 | * 45 | * @param depth The maximum recursion depth 46 | */ 47 | flat( 48 | this: A, 49 | depth?: D, 50 | ): FlatArray[]; 51 | } 52 | 53 | interface Array { 54 | /** 55 | * Calls a defined callback function on each element of an array. Then, flattens the result into 56 | * a new array. 57 | * This is identical to a map followed by flat with depth 1. 58 | * 59 | * @param callback A function that accepts up to three arguments. The flatMap method calls the 60 | * callback function one time for each element in the array. 61 | * @param thisArg An object to which the this keyword can refer in the callback function. If 62 | * thisArg is omitted, undefined is used as the this value. 63 | */ 64 | flatMap( 65 | callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray, 66 | thisArg?: This, 67 | ): U[]; 68 | 69 | /** 70 | * Returns a new array with all sub-array elements concatenated into it recursively up to the 71 | * specified depth. 72 | * 73 | * @param depth The maximum recursion depth 74 | */ 75 | flat( 76 | this: A, 77 | depth?: D, 78 | ): FlatArray[]; 79 | } 80 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2019.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2019.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2019.object.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | 21 | interface ObjectConstructor { 22 | /** 23 | * Returns an object created by key-value entries for properties and methods 24 | * @param entries An iterable object that contains key-value entries for properties and methods. 25 | */ 26 | fromEntries(entries: Iterable): { [k: string]: T; }; 27 | 28 | /** 29 | * Returns an object created by key-value entries for properties and methods 30 | * @param entries An iterable object that contains key-value entries for properties and methods. 31 | */ 32 | fromEntries(entries: Iterable): any; 33 | } 34 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2019.string.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface String { 20 | /** Removes the trailing white space and line terminator characters from a string. */ 21 | trimEnd(): string; 22 | 23 | /** Removes the leading white space and line terminator characters from a string. */ 24 | trimStart(): string; 25 | 26 | /** 27 | * Removes the leading white space and line terminator characters from a string. 28 | * @deprecated A legacy feature for browser compatibility. Use `trimStart` instead 29 | */ 30 | trimLeft(): string; 31 | 32 | /** 33 | * Removes the trailing white space and line terminator characters from a string. 34 | * @deprecated A legacy feature for browser compatibility. Use `trimEnd` instead 35 | */ 36 | trimRight(): string; 37 | } 38 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2019.symbol.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface Symbol { 20 | /** 21 | * Expose the [[Description]] internal slot of a symbol directly. 22 | */ 23 | readonly description: string | undefined; 24 | } 25 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2020.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | /// 27 | /// 28 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2020.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2020.promise.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface PromiseFulfilledResult { 20 | status: "fulfilled"; 21 | value: T; 22 | } 23 | 24 | interface PromiseRejectedResult { 25 | status: "rejected"; 26 | reason: any; 27 | } 28 | 29 | type PromiseSettledResult = PromiseFulfilledResult | PromiseRejectedResult; 30 | 31 | interface PromiseConstructor { 32 | /** 33 | * Creates a Promise that is resolved with an array of results when all 34 | * of the provided Promises resolve or reject. 35 | * @param values An array of Promises. 36 | * @returns A new Promise. 37 | */ 38 | allSettled(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult>; }>; 39 | 40 | /** 41 | * Creates a Promise that is resolved with an array of results when all 42 | * of the provided Promises resolve or reject. 43 | * @param values An array of Promises. 44 | * @returns A new Promise. 45 | */ 46 | allSettled(values: Iterable>): Promise>[]>; 47 | } 48 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2020.sharedmemory.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | 21 | interface Atomics { 22 | /** 23 | * Adds a value to the value at the given position in the array, returning the original value. 24 | * Until this atomic operation completes, any other read or write operation against the array 25 | * will block. 26 | */ 27 | add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; 28 | 29 | /** 30 | * Stores the bitwise AND of a value with the value at the given position in the array, 31 | * returning the original value. Until this atomic operation completes, any other read or 32 | * write operation against the array will block. 33 | */ 34 | and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; 35 | 36 | /** 37 | * Replaces the value at the given position in the array if the original value equals the given 38 | * expected value, returning the original value. Until this atomic operation completes, any 39 | * other read or write operation against the array will block. 40 | */ 41 | compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint; 42 | 43 | /** 44 | * Replaces the value at the given position in the array, returning the original value. Until 45 | * this atomic operation completes, any other read or write operation against the array will 46 | * block. 47 | */ 48 | exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; 49 | 50 | /** 51 | * Returns the value at the given position in the array. Until this atomic operation completes, 52 | * any other read or write operation against the array will block. 53 | */ 54 | load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint; 55 | 56 | /** 57 | * Stores the bitwise OR of a value with the value at the given position in the array, 58 | * returning the original value. Until this atomic operation completes, any other read or write 59 | * operation against the array will block. 60 | */ 61 | or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; 62 | 63 | /** 64 | * Stores a value at the given position in the array, returning the new value. Until this 65 | * atomic operation completes, any other read or write operation against the array will block. 66 | */ 67 | store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; 68 | 69 | /** 70 | * Subtracts a value from the value at the given position in the array, returning the original 71 | * value. Until this atomic operation completes, any other read or write operation against the 72 | * array will block. 73 | */ 74 | sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; 75 | 76 | /** 77 | * If the value at the given position in the array is equal to the provided value, the current 78 | * agent is put to sleep causing execution to suspend until the timeout expires (returning 79 | * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns 80 | * `"not-equal"`. 81 | */ 82 | wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out"; 83 | 84 | /** 85 | * Wakes up sleeping agents that are waiting on the given index of the array, returning the 86 | * number of agents that were awoken. 87 | * @param typedArray A shared BigInt64Array. 88 | * @param index The position in the typedArray to wake up on. 89 | * @param count The number of sleeping agents to notify. Defaults to +Infinity. 90 | */ 91 | notify(typedArray: BigInt64Array, index: number, count?: number): number; 92 | 93 | /** 94 | * Stores the bitwise XOR of a value with the value at the given position in the array, 95 | * returning the original value. Until this atomic operation completes, any other read or write 96 | * operation against the array will block. 97 | */ 98 | xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; 99 | } 100 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2020.string.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | 23 | interface String { 24 | /** 25 | * Matches a string with a regular expression, and returns an iterable of matches 26 | * containing the results of that search. 27 | * @param regexp A variable name or string literal containing the regular expression pattern and flags. 28 | */ 29 | matchAll(regexp: RegExp): RegExpStringIterator; 30 | 31 | /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ 32 | toLocaleLowerCase(locales?: Intl.LocalesArgument): string; 33 | 34 | /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */ 35 | toLocaleUpperCase(locales?: Intl.LocalesArgument): string; 36 | 37 | /** 38 | * Determines whether two strings are equivalent in the current or specified locale. 39 | * @param that String to compare to target string 40 | * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. 41 | * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. 42 | */ 43 | localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number; 44 | } 45 | -------------------------------------------------------------------------------- /typescript/lib/lib.es2020.symbol.wellknown.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | 22 | interface SymbolConstructor { 23 | /** 24 | * A regular expression method that matches the regular expression against a string. Called 25 | * by the String.prototype.matchAll method. 26 | */ 27 | readonly matchAll: unique symbol; 28 | } 29 | 30 | interface RegExpStringIterator extends IteratorObject { 31 | [Symbol.iterator](): RegExpStringIterator; 32 | } 33 | 34 | interface RegExp { 35 | /** 36 | * Matches a string with this regular expression, and returns an iterable of matches 37 | * containing the results of that search. 38 | * @param string A string to search within. 39 | */ 40 | [Symbol.matchAll](str: string): RegExpStringIterator; 41 | } 42 | -------------------------------------------------------------------------------- /typescript/lib/lib.es6.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | -------------------------------------------------------------------------------- /typescript/lib/lib.esnext.array.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface ArrayConstructor { 20 | /** 21 | * Creates an array from an async iterator or iterable object. 22 | * @param iterableOrArrayLike An async iterator or array-like object to convert to an array. 23 | */ 24 | fromAsync(iterableOrArrayLike: AsyncIterable | Iterable> | ArrayLike>): Promise; 25 | 26 | /** 27 | * Creates an array from an async iterator or iterable object. 28 | * 29 | * @param iterableOrArrayLike An async iterator or array-like object to convert to an array. 30 | * @param mapfn A mapping function to call on every element of itarableOrArrayLike. 31 | * Each return value is awaited before being added to result array. 32 | * @param thisArg Value of 'this' used when executing mapfn. 33 | */ 34 | fromAsync(iterableOrArrayLike: AsyncIterable | Iterable | ArrayLike, mapFn: (value: Awaited, index: number) => U, thisArg?: any): Promise[]>; 35 | } 36 | -------------------------------------------------------------------------------- /typescript/lib/lib.esnext.asynciterable.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | 24 | interface SymbolConstructor { 25 | /** 26 | * A method that returns the default async iterator for an object. Called by the semantics of 27 | * the for-await-of statement. 28 | */ 29 | readonly asyncIterator: symbol; 30 | } 31 | 32 | interface AsyncIterator { 33 | next(value?: any): Promise>; 34 | return?(value?: any): Promise>; 35 | throw?(e?: any): Promise>; 36 | } 37 | 38 | interface AsyncIterable { 39 | [Symbol.asyncIterator](): AsyncIterator; 40 | } 41 | 42 | interface AsyncIterableIterator extends AsyncIterator { 43 | [Symbol.asyncIterator](): AsyncIterableIterator; 44 | } -------------------------------------------------------------------------------- /typescript/lib/lib.esnext.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | /// 27 | /// 28 | -------------------------------------------------------------------------------- /typescript/lib/lib.esnext.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /typescript/lib/lib.esnext.intl.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | declare namespace Intl { 20 | // Empty 21 | } 22 | -------------------------------------------------------------------------------- /typescript/lib/lib.esnext.promise.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface PromiseConstructor { 20 | /** 21 | * Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result 22 | * in a Promise. 23 | * 24 | * @param callbackFn A function that is called synchronously. It can do anything: either return 25 | * a value, throw an error, or return a promise. 26 | * @param args Additional arguments, that will be passed to the callback. 27 | * 28 | * @returns A Promise that is: 29 | * - Already fulfilled, if the callback synchronously returns a value. 30 | * - Already rejected, if the callback synchronously throws an error. 31 | * - Asynchronously fulfilled or rejected, if the callback returns a promise. 32 | */ 33 | try(callbackFn: (...args: U) => T | PromiseLike, ...args: U): Promise>; 34 | } 35 | -------------------------------------------------------------------------------- /typescript/lib/lib.esnext.string.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface String { 20 | /** 21 | * Returns true if all leading surrogates and trailing surrogates appear paired and in order. 22 | */ 23 | isWellFormed(): boolean; 24 | 25 | /** 26 | * Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD). 27 | */ 28 | toWellFormed(): string; 29 | } 30 | -------------------------------------------------------------------------------- /typescript/lib/lib.esnext.symbol.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | interface Symbol { 22 | /** 23 | * expose the [[Description]] internal slot of a symbol directly 24 | */ 25 | readonly description: string; 26 | } 27 | -------------------------------------------------------------------------------- /typescript/lib/lib.esnext.weakref.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | interface WeakRef { 22 | readonly [Symbol.toStringTag]: "WeakRef"; 23 | 24 | /** 25 | * Returns the WeakRef instance's target object, or undefined if the target object has been 26 | * reclaimed. 27 | */ 28 | deref(): T | undefined; 29 | } 30 | 31 | interface WeakRefConstructor { 32 | readonly prototype: WeakRef; 33 | 34 | /** 35 | * Creates a WeakRef instance for the given target object. 36 | * @param target The target object for the WeakRef instance. 37 | */ 38 | new(target?: T): WeakRef; 39 | } 40 | 41 | declare var WeakRef: WeakRefConstructor; 42 | 43 | interface FinalizationRegistry { 44 | readonly [Symbol.toStringTag]: "FinalizationRegistry"; 45 | 46 | /** 47 | * Registers an object with the registry. 48 | * @param target The target object to register. 49 | * @param heldValue The value to pass to the finalizer for this object. This cannot be the 50 | * target object. 51 | * @param unregisterToken The token to pass to the unregister method to unregister the target 52 | * object. If provided (and not undefined), this must be an object. If not provided, the target 53 | * cannot be unregistered. 54 | */ 55 | register(target: object, heldValue: any, unregisterToken?: object): void; 56 | 57 | /** 58 | * Unregisters an object from the registry. 59 | * @param unregisterToken The token that was used as the unregisterToken argument when calling 60 | * register to register the target object. 61 | */ 62 | unregister(unregisterToken: object): void; 63 | } 64 | 65 | interface FinalizationRegistryConstructor { 66 | readonly prototype: FinalizationRegistry; 67 | 68 | /** 69 | * Creates a finalization registry with an associated cleanup callback 70 | * @param cleanupCallback The callback to call after an object in the registry has been reclaimed. 71 | */ 72 | new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry; 73 | } 74 | 75 | declare var FinalizationRegistry: FinalizationRegistryConstructor; 76 | -------------------------------------------------------------------------------- /typescript/lib/lib.webworker.importscripts.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | ///////////////////////////// 20 | /// WorkerGlobalScope APIs 21 | ///////////////////////////// 22 | // These are only available in a Web Worker 23 | declare function importScripts(...urls: string[]): void; 24 | -------------------------------------------------------------------------------- /typescript/lib/tsc.js: -------------------------------------------------------------------------------- 1 | // This file is a shim which defers loading the real module until the compile cache is enabled. 2 | try { 3 | const { enableCompileCache } = require("node:module"); 4 | if (enableCompileCache) { 5 | enableCompileCache(); 6 | } 7 | } catch {} 8 | module.exports = require("./_tsc.js"); 9 | -------------------------------------------------------------------------------- /typescript/lib/tsserver.js: -------------------------------------------------------------------------------- 1 | // This file is a shim which defers loading the real module until the compile cache is enabled. 2 | try { 3 | const { enableCompileCache } = require("node:module"); 4 | if (enableCompileCache) { 5 | enableCompileCache(); 6 | } 7 | } catch {} 8 | module.exports = require("./_tsserver.js"); 9 | -------------------------------------------------------------------------------- /typescript/lib/tsserverlibrary.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | import ts = require("./typescript.js"); 17 | export = ts; 18 | -------------------------------------------------------------------------------- /typescript/lib/tsserverlibrary.js: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | if (typeof module !== "undefined" && module.exports) { 17 | module.exports = require("./typescript.js"); 18 | } 19 | else { 20 | throw new Error("tsserverlibrary requires CommonJS; use typescript.js instead"); 21 | } 22 | -------------------------------------------------------------------------------- /typescript/lib/typingsInstaller.js: -------------------------------------------------------------------------------- 1 | // This file is a shim which defers loading the real module until the compile cache is enabled. 2 | try { 3 | const { enableCompileCache } = require("node:module"); 4 | if (enableCompileCache) { 5 | enableCompileCache(); 6 | } 7 | } catch {} 8 | module.exports = require("./_typingsInstaller.js"); 9 | -------------------------------------------------------------------------------- /typescript/lib/watchGuard.js: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | "use strict"; 18 | var __create = Object.create; 19 | var __defProp = Object.defineProperty; 20 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 21 | var __getOwnPropNames = Object.getOwnPropertyNames; 22 | var __getProtoOf = Object.getPrototypeOf; 23 | var __hasOwnProp = Object.prototype.hasOwnProperty; 24 | var __copyProps = (to, from, except, desc) => { 25 | if (from && typeof from === "object" || typeof from === "function") { 26 | for (let key of __getOwnPropNames(from)) 27 | if (!__hasOwnProp.call(to, key) && key !== except) 28 | __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 29 | } 30 | return to; 31 | }; 32 | var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( 33 | // If the importer is in node compatibility mode or this is not an ESM 34 | // file that has been converted to a CommonJS file using a Babel- 35 | // compatible transform (i.e. "__esModule" has not been set), then set 36 | // "default" to the CommonJS "module.exports" for node compatibility. 37 | isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, 38 | mod 39 | )); 40 | 41 | // src/watchGuard/watchGuard.ts 42 | var fs = __toESM(require("fs")); 43 | if (process.argv.length < 3) { 44 | process.exit(1); 45 | } 46 | var directoryName = process.argv[2]; 47 | try { 48 | const watcher = fs.watch(directoryName, { recursive: true }, () => ({})); 49 | watcher.close(); 50 | } catch { 51 | } 52 | process.exit(0); 53 | //# sourceMappingURL=watchGuard.js.map 54 | -------------------------------------------------------------------------------- /typescript/loc/lcl/CHS/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/CHS/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/CHT/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/CHT/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/CSY/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/CSY/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/DEU/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/DEU/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/ESN/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/ESN/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/FRA/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/FRA/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/ITA/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/ITA/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/JPN/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/JPN/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/KOR/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/KOR/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/PLK/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/PLK/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/PTB/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/PTB/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/loc/lcl/RUS/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/TRK/Targets/ProjectItemsSchema.xaml.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /typescript/loc/lcl/TRK/TypeScriptDebugEngine/TypeScriptDebugEngine.dll.lcl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /typescript/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "typescript", 3 | "author": "Microsoft Corp.", 4 | "homepage": "https://www.typescriptlang.org/", 5 | "version": "5.8.3", 6 | "license": "Apache-2.0", 7 | "description": "TypeScript is a language for application scale JavaScript development", 8 | "keywords": [ 9 | "TypeScript", 10 | "Microsoft", 11 | "compiler", 12 | "language", 13 | "javascript" 14 | ], 15 | "bugs": { 16 | "url": "https://github.com/microsoft/TypeScript/issues" 17 | }, 18 | "repository": { 19 | "type": "git", 20 | "url": "https://github.com/microsoft/TypeScript.git" 21 | }, 22 | "main": "./lib/typescript.js", 23 | "typings": "./lib/typescript.d.ts", 24 | "bin": { 25 | "tsc": "./bin/tsc", 26 | "tsserver": "./bin/tsserver" 27 | }, 28 | "engines": { 29 | "node": ">=14.17" 30 | }, 31 | "files": [ 32 | "bin", 33 | "lib", 34 | "!lib/enu", 35 | "LICENSE.txt", 36 | "README.md", 37 | "SECURITY.md", 38 | "ThirdPartyNoticeText.txt", 39 | "!**/.gitattributes" 40 | ], 41 | "devDependencies": { 42 | "@dprint/formatter": "^0.4.1", 43 | "@dprint/typescript": "0.93.3", 44 | "@esfx/canceltoken": "^1.0.0", 45 | "@eslint/js": "^9.17.0", 46 | "@octokit/rest": "^21.0.2", 47 | "@types/chai": "^4.3.20", 48 | "@types/diff": "^5.2.3", 49 | "@types/minimist": "^1.2.5", 50 | "@types/mocha": "^10.0.10", 51 | "@types/ms": "^0.7.34", 52 | "@types/node": "latest", 53 | "@types/source-map-support": "^0.5.10", 54 | "@types/which": "^3.0.4", 55 | "@typescript-eslint/rule-tester": "^8.18.1", 56 | "@typescript-eslint/type-utils": "^8.18.1", 57 | "@typescript-eslint/utils": "^8.18.1", 58 | "azure-devops-node-api": "^14.1.0", 59 | "c8": "^10.1.3", 60 | "chai": "^4.5.0", 61 | "chalk": "^4.1.2", 62 | "chokidar": "^3.6.0", 63 | "diff": "^5.2.0", 64 | "dprint": "^0.47.6", 65 | "esbuild": "^0.24.0", 66 | "eslint": "^9.17.0", 67 | "eslint-formatter-autolinkable-stylish": "^1.4.0", 68 | "eslint-plugin-regexp": "^2.7.0", 69 | "fast-xml-parser": "^4.5.1", 70 | "glob": "^10.4.5", 71 | "globals": "^15.13.0", 72 | "hereby": "^1.10.0", 73 | "jsonc-parser": "^3.3.1", 74 | "knip": "^5.41.0", 75 | "minimist": "^1.2.8", 76 | "mocha": "^10.8.2", 77 | "mocha-fivemat-progress-reporter": "^0.1.0", 78 | "monocart-coverage-reports": "^2.11.4", 79 | "ms": "^2.1.3", 80 | "playwright": "^1.49.1", 81 | "source-map-support": "^0.5.21", 82 | "tslib": "^2.8.1", 83 | "typescript": "^5.7.2", 84 | "typescript-eslint": "^8.18.1", 85 | "which": "^3.0.1" 86 | }, 87 | "overrides": { 88 | "typescript@*": "$typescript" 89 | }, 90 | "scripts": { 91 | "test": "hereby runtests-parallel --light=false", 92 | "test:eslint-rules": "hereby run-eslint-rules-tests", 93 | "build": "npm run build:compiler && npm run build:tests", 94 | "build:compiler": "hereby local", 95 | "build:tests": "hereby tests", 96 | "build:tests:notypecheck": "hereby tests --no-typecheck", 97 | "clean": "hereby clean", 98 | "gulp": "hereby", 99 | "lint": "hereby lint", 100 | "knip": "hereby knip", 101 | "format": "dprint fmt", 102 | "setup-hooks": "node scripts/link-hooks.mjs" 103 | }, 104 | "browser": { 105 | "fs": false, 106 | "os": false, 107 | "path": false, 108 | "crypto": false, 109 | "buffer": false, 110 | "source-map-support": false, 111 | "inspector": false, 112 | "perf_hooks": false 113 | }, 114 | "packageManager": "npm@8.19.4", 115 | "volta": { 116 | "node": "20.1.0", 117 | "npm": "8.19.4" 118 | }, 119 | "gitHead": "68cead182cc24afdc3f1ce7c8ff5853aba14b65a" 120 | } 121 | --------------------------------------------------------------------------------