typescript
Advanced tools
Comparing version 4.8.4 to 4.9.5
@@ -49,2 +49,6 @@ /*! ***************************************************************************** | ||
interface CanvasPath { | ||
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void; | ||
} | ||
interface CanvasPathDrawingStyles { | ||
@@ -277,4 +281,4 @@ setLineDash(segments: Iterable<number>): void; | ||
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void; | ||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; | ||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void; | ||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; | ||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void; | ||
} | ||
@@ -281,0 +285,0 @@ |
@@ -44,3 +44,3 @@ /*! ***************************************************************************** | ||
// see: lib.es2015.iterable.d.ts | ||
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>; | ||
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>; | ||
@@ -56,3 +56,3 @@ /** | ||
// see: lib.es2015.iterable.d.ts | ||
// race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>; | ||
// race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>; | ||
@@ -71,3 +71,2 @@ /** | ||
resolve(): Promise<void>; | ||
/** | ||
@@ -78,5 +77,11 @@ * Creates a new resolved promise for the provided value. | ||
*/ | ||
resolve<T>(value: T | PromiseLike<T>): Promise<T>; | ||
resolve<T>(value: T): Promise<Awaited<T>>; | ||
/** | ||
* Creates a new resolved promise for the provided value. | ||
* @param value A promise. | ||
* @returns A promise whose internal state matches the provided promise. | ||
*/ | ||
resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>; | ||
} | ||
declare var Promise: PromiseConstructor; |
@@ -101,3 +101,3 @@ /*! ***************************************************************************** | ||
* @param receiver The object to which the assignment was originally directed. | ||
* @returns `A `Boolean` indicating whether or not the property was set. | ||
* @returns A `Boolean` indicating whether or not the property was set. | ||
*/ | ||
@@ -104,0 +104,0 @@ set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean; |
@@ -29,2 +29,7 @@ /*! ***************************************************************************** | ||
*/ | ||
function apply<T, A extends readonly any[], R>( | ||
target: (this: T, ...args: A) => R, | ||
thisArgument: T, | ||
argumentsList: Readonly<A>, | ||
): R; | ||
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any; | ||
@@ -39,2 +44,7 @@ | ||
*/ | ||
function construct<A extends readonly any[], R>( | ||
target: new (...args: A) => R, | ||
argumentsList: Readonly<A>, | ||
newTarget?: new (...args: any) => any, | ||
): R; | ||
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any; | ||
@@ -66,3 +76,7 @@ | ||
*/ | ||
function get(target: object, propertyKey: PropertyKey, receiver?: any): any; | ||
function get<T extends object, P extends PropertyKey>( | ||
target: T, | ||
propertyKey: P, | ||
receiver?: unknown, | ||
): P extends keyof T ? T[P] : any; | ||
@@ -75,3 +89,6 @@ /** | ||
*/ | ||
function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined; | ||
function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>( | ||
target: T, | ||
propertyKey: P, | ||
): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined; | ||
@@ -118,2 +135,8 @@ /** | ||
*/ | ||
function set<T extends object, P extends PropertyKey>( | ||
target: T, | ||
propertyKey: P, | ||
value: P extends keyof T ? T[P] : any, | ||
receiver?: any, | ||
): boolean; | ||
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean; | ||
@@ -120,0 +143,0 @@ |
@@ -242,5 +242,5 @@ /*! ***************************************************************************** | ||
/** | ||
* Replaces first match with string or all matches with RegExp. | ||
* @param searchValue A string or RegExp search value. | ||
* @param replaceValue A string containing the text to replace for match. | ||
* Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm. | ||
* @param searchValue An object that supports searching for and replacing matches within a string. | ||
* @param replaceValue The replacement text. | ||
*/ | ||
@@ -247,0 +247,0 @@ replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; |
@@ -26,1 +26,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="es2019.symbol" /> | ||
/// <reference lib="es2019.intl" /> |
@@ -106,3 +106,3 @@ /*! ***************************************************************************** | ||
*/ | ||
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined; | ||
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined; | ||
@@ -109,0 +109,0 @@ /** |
@@ -29,2 +29,10 @@ /*! ***************************************************************************** | ||
interface CanvasPath { | ||
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void; | ||
} | ||
interface CanvasPathDrawingStyles { | ||
setLineDash(segments: Iterable<number>): void; | ||
} | ||
interface DOMStringList { | ||
@@ -107,4 +115,4 @@ [Symbol.iterator](): IterableIterator<string>; | ||
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void; | ||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; | ||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void; | ||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; | ||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void; | ||
} | ||
@@ -111,0 +119,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://www.typescriptlang.org/", | ||
"version": "4.8.4", | ||
"version": "4.9.5", | ||
"license": "Apache-2.0", | ||
@@ -32,6 +32,16 @@ "description": "TypeScript is a language for application scale JavaScript development", | ||
}, | ||
"files": [ | ||
"bin", | ||
"lib", | ||
"!lib/enu", | ||
"LICENSE.txt", | ||
"README.md", | ||
"SECURITY.md", | ||
"ThirdPartyNoticeText.txt", | ||
"!**/.gitattributes" | ||
], | ||
"devDependencies": { | ||
"@octokit/rest": "latest", | ||
"@types/chai": "latest", | ||
"@types/convert-source-map": "latest", | ||
"@types/fancy-log": "^2.0.0", | ||
"@types/fs-extra": "^9.0.13", | ||
@@ -46,3 +56,2 @@ "@types/glob": "latest", | ||
"@types/microsoft__typescript-etw": "latest", | ||
"@types/minimatch": "latest", | ||
"@types/minimist": "latest", | ||
@@ -53,21 +62,19 @@ "@types/mkdirp": "latest", | ||
"@types/node": "latest", | ||
"@types/node-fetch": "^2.6.2", | ||
"@types/q": "latest", | ||
"@types/source-map-support": "latest", | ||
"@types/which": "^2.0.1", | ||
"@types/xml2js": "^0.4.11", | ||
"@typescript-eslint/eslint-plugin": "^5.28.0", | ||
"@typescript-eslint/parser": "^5.28.0", | ||
"@typescript-eslint/utils": "^5.28.0", | ||
"async": "latest", | ||
"azure-devops-node-api": "^11.1.1", | ||
"@typescript-eslint/eslint-plugin": "^5.33.1", | ||
"@typescript-eslint/parser": "^5.33.1", | ||
"@typescript-eslint/utils": "^5.33.1", | ||
"azure-devops-node-api": "^11.2.0", | ||
"chai": "latest", | ||
"chalk": "^4.1.2", | ||
"convert-source-map": "latest", | ||
"del": "6.1.1", | ||
"del": "^6.1.1", | ||
"diff": "^5.1.0", | ||
"eslint": "8.17.0", | ||
"eslint-formatter-autolinkable-stylish": "1.2.0", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-jsdoc": "39.3.2", | ||
"eslint-plugin-no-null": "1.0.2", | ||
"eslint": "^8.22.0", | ||
"eslint-formatter-autolinkable-stylish": "^1.2.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsdoc": "^39.3.6", | ||
"eslint-plugin-local": "^1.0.0", | ||
"eslint-plugin-no-null": "^1.0.2", | ||
"fancy-log": "latest", | ||
@@ -88,9 +95,7 @@ "fs-extra": "^9.1.0", | ||
"ms": "^2.1.3", | ||
"node-fetch": "^2.6.7", | ||
"prex": "^0.4.7", | ||
"q": "latest", | ||
"node-fetch": "^3.2.10", | ||
"source-map-support": "latest", | ||
"typescript": "^4.5.5", | ||
"typescript": "^4.8.4", | ||
"vinyl": "latest", | ||
"vinyl-sourcemaps-apply": "latest", | ||
"which": "^2.0.2", | ||
"xml2js": "^0.4.23" | ||
@@ -102,4 +107,2 @@ }, | ||
"scripts": { | ||
"prepare": "gulp build-eslint-rules", | ||
"pretest": "gulp tests", | ||
"test": "gulp runtests-parallel --light=false", | ||
@@ -114,6 +117,3 @@ "test:eslint-rules": "gulp run-eslint-rules-tests", | ||
"lint": "gulp lint", | ||
"lint:ci": "gulp lint --ci", | ||
"lint:compiler": "gulp lint-compiler", | ||
"lint:scripts": "gulp lint-scripts", | ||
"setup-hooks": "node scripts/link-hooks.js" | ||
"setup-hooks": "node scripts/link-hooks.mjs" | ||
}, | ||
@@ -135,2 +135,2 @@ "browser": { | ||
} | ||
} | ||
} |
@@ -49,57 +49,4 @@ | ||
## Building | ||
In order to build the TypeScript compiler, ensure that you have [Git](https://git-scm.com/downloads) and [Node.js](https://nodejs.org/) installed. | ||
Clone a copy of the repo: | ||
```bash | ||
git clone https://github.com/microsoft/TypeScript.git | ||
``` | ||
Change to the TypeScript directory: | ||
```bash | ||
cd TypeScript | ||
``` | ||
Install [Gulp](https://gulpjs.com/) tools and dev dependencies: | ||
```bash | ||
npm install -g gulp | ||
npm ci | ||
``` | ||
Use one of the following to build and test: | ||
``` | ||
gulp local # Build the compiler into built/local. | ||
gulp clean # Delete the built compiler. | ||
gulp LKG # Replace the last known good with the built one. | ||
# Bootstrapping step to be executed when the built compiler reaches a stable state. | ||
gulp tests # Build the test infrastructure using the built compiler. | ||
gulp runtests # Run tests using the built compiler and test infrastructure. | ||
# You can override the specific suite runner used or specify a test for this command. | ||
# Use --tests=<testPath> for a specific test and/or --runner=<runnerName> for a specific suite. | ||
# Valid runners include conformance, compiler, fourslash, project, user, and docker | ||
# The user and docker runners are extended test suite runners - the user runner | ||
# works on disk in the tests/cases/user directory, while the docker runner works in containers. | ||
# You'll need to have the docker executable in your system path for the docker runner to work. | ||
gulp runtests-parallel # Like runtests, but split across multiple threads. Uses a number of threads equal to the system | ||
# core count by default. Use --workers=<number> to adjust this. | ||
gulp baseline-accept # This replaces the baseline test results with the results obtained from gulp runtests. | ||
gulp lint # Runs eslint on the TypeScript source. | ||
gulp help # List the above commands. | ||
``` | ||
## Usage | ||
```bash | ||
node built/local/tsc.js hello.ts | ||
``` | ||
## Roadmap | ||
For details on our planned features and future direction please refer to our [roadmap](https://github.com/microsoft/TypeScript/wiki/Roadmap). |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
55
1
100
96298
66849652
108
52