typescript
Advanced tools
Comparing version
@@ -49,2 +49,6 @@ /*! ***************************************************************************** | ||
interface CanvasPath { | ||
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void; | ||
} | ||
interface CanvasPathDrawingStyles { | ||
@@ -125,3 +129,3 @@ setLineDash(segments: Iterable<number>): void; | ||
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */ | ||
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction; | ||
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; | ||
} | ||
@@ -138,12 +142,2 @@ | ||
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> { | ||
} | ||
interface MIDIOutput { | ||
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void; | ||
} | ||
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> { | ||
} | ||
interface MediaKeyStatusMap { | ||
@@ -289,4 +283,4 @@ [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>; | ||
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; | ||
} | ||
@@ -293,0 +287,0 @@ |
@@ -22,8 +22,28 @@ /*! ***************************************************************************** | ||
interface Map<K, V> { | ||
clear(): void; | ||
/** | ||
* @returns true if an element in the Map existed and has been removed, or false if the element does not exist. | ||
*/ | ||
delete(key: K): boolean; | ||
/** | ||
* Executes a provided function once per each key/value pair in the Map, in insertion order. | ||
*/ | ||
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void; | ||
/** | ||
* 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. | ||
* @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned. | ||
*/ | ||
get(key: K): V | undefined; | ||
/** | ||
* @returns boolean indicating whether an element with the specified key exists or not. | ||
*/ | ||
has(key: K): boolean; | ||
/** | ||
* 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. | ||
*/ | ||
set(key: K, value: V): this; | ||
/** | ||
* @returns the number of elements in the Map. | ||
*/ | ||
readonly size: number; | ||
@@ -34,3 +54,3 @@ } | ||
new(): Map<any, any>; | ||
new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>; | ||
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>; | ||
readonly prototype: Map<any, any>; | ||
@@ -48,5 +68,19 @@ } | ||
interface WeakMap<K extends object, V> { | ||
/** | ||
* Removes the specified element from the WeakMap. | ||
* @returns true if the element was successfully removed, or false if it was not present. | ||
*/ | ||
delete(key: K): boolean; | ||
/** | ||
* @returns a specified element. | ||
*/ | ||
get(key: K): V | undefined; | ||
/** | ||
* @returns a boolean indicating whether an element with the specified key exists or not. | ||
*/ | ||
has(key: K): boolean; | ||
/** | ||
* Adds a new element with a specified key and value. | ||
* @param key Must be an object. | ||
*/ | ||
set(key: K, value: V): this; | ||
@@ -62,7 +96,24 @@ } | ||
interface Set<T> { | ||
/** | ||
* Appends a new element with a specified value to the end of the Set. | ||
*/ | ||
add(value: T): this; | ||
clear(): void; | ||
/** | ||
* Removes a specified value from the Set. | ||
* @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist. | ||
*/ | ||
delete(value: T): boolean; | ||
/** | ||
* Executes a provided function once per each value in the Set object, in insertion order. | ||
*/ | ||
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void; | ||
/** | ||
* @returns a boolean indicating whether an element with the specified value exists in the Set or not. | ||
*/ | ||
has(value: T): boolean; | ||
/** | ||
* @returns the number of (unique) elements in Set. | ||
*/ | ||
readonly size: number; | ||
@@ -84,4 +135,14 @@ } | ||
interface WeakSet<T extends object> { | ||
/** | ||
* Appends a new object to the end of the WeakSet. | ||
*/ | ||
add(value: T): this; | ||
/** | ||
* Removes the specified element from the WeakSet. | ||
* @returns Returns true if the element existed and has been removed, or false if the element does not exist. | ||
*/ | ||
delete(value: T): boolean; | ||
/** | ||
* @returns a boolean indicating whether an object exists in the WeakSet or not. | ||
*/ | ||
has(value: T): boolean; | ||
@@ -88,0 +149,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; |
@@ -22,14 +22,90 @@ /*! ***************************************************************************** | ||
interface ProxyHandler<T extends object> { | ||
/** | ||
* A trap method for a function call. | ||
* @param target The original callable object which is being proxied. | ||
*/ | ||
apply?(target: T, thisArg: any, argArray: any[]): any; | ||
/** | ||
* A trap for the `new` operator. | ||
* @param target The original object which is being proxied. | ||
* @param newTarget The constructor that was originally called. | ||
*/ | ||
construct?(target: T, argArray: any[], newTarget: Function): object; | ||
defineProperty?(target: T, p: string | symbol, attributes: PropertyDescriptor): boolean; | ||
/** | ||
* A trap for `Object.defineProperty()`. | ||
* @param target The original object which is being proxied. | ||
* @returns A `Boolean` indicating whether or not the property has been defined. | ||
*/ | ||
defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean; | ||
/** | ||
* A trap for the `delete` operator. | ||
* @param target The original object which is being proxied. | ||
* @param p The name or `Symbol` of the property to delete. | ||
* @returns A `Boolean` indicating whether or not the property was deleted. | ||
*/ | ||
deleteProperty?(target: T, p: string | symbol): boolean; | ||
/** | ||
* A trap for getting a property value. | ||
* @param target The original object which is being proxied. | ||
* @param p The name or `Symbol` of the property to get. | ||
* @param receiver The proxy or an object that inherits from the proxy. | ||
*/ | ||
get?(target: T, p: string | symbol, receiver: any): any; | ||
/** | ||
* A trap for `Object.getOwnPropertyDescriptor()`. | ||
* @param target The original object which is being proxied. | ||
* @param p The name of the property whose description should be retrieved. | ||
*/ | ||
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined; | ||
/** | ||
* A trap for the `[[GetPrototypeOf]]` internal method. | ||
* @param target The original object which is being proxied. | ||
*/ | ||
getPrototypeOf?(target: T): object | null; | ||
/** | ||
* A trap for the `in` operator. | ||
* @param target The original object which is being proxied. | ||
* @param p The name or `Symbol` of the property to check for existence. | ||
*/ | ||
has?(target: T, p: string | symbol): boolean; | ||
/** | ||
* A trap for `Object.isExtensible()`. | ||
* @param target The original object which is being proxied. | ||
*/ | ||
isExtensible?(target: T): boolean; | ||
/** | ||
* A trap for `Reflect.ownKeys()`. | ||
* @param target The original object which is being proxied. | ||
*/ | ||
ownKeys?(target: T): ArrayLike<string | symbol>; | ||
/** | ||
* A trap for `Object.preventExtensions()`. | ||
* @param target The original object which is being proxied. | ||
*/ | ||
preventExtensions?(target: T): boolean; | ||
set?(target: T, p: string | symbol, value: any, receiver: any): boolean; | ||
/** | ||
* A trap for setting a property value. | ||
* @param target The original object which is being proxied. | ||
* @param p The name or `Symbol` of the property to set. | ||
* @param receiver The object to which the assignment was originally directed. | ||
* @returns A `Boolean` indicating whether or not the property was set. | ||
*/ | ||
set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean; | ||
/** | ||
* A trap for `Object.setPrototypeOf()`. | ||
* @param target The original object which is being proxied. | ||
* @param newPrototype The object's new prototype or `null`. | ||
*/ | ||
setPrototypeOf?(target: T, v: object | null): boolean; | ||
@@ -39,5 +115,18 @@ } | ||
interface ProxyConstructor { | ||
/** | ||
* Creates a revocable Proxy object. | ||
* @param target A target object to wrap with Proxy. | ||
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it. | ||
*/ | ||
revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; }; | ||
/** | ||
* Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the | ||
* original object, but which may redefine fundamental Object operations like getting, setting, and defining | ||
* properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs. | ||
* @param target A target object to wrap with Proxy. | ||
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it. | ||
*/ | ||
new <T extends object>(target: T, handler: ProxyHandler<T>): T; | ||
} | ||
declare var Proxy: ProxyConstructor; |
@@ -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; |
@@ -22,4 +22,19 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year"; | ||
interface DateTimeFormatPartTypesRegistry { | ||
day: any | ||
dayPeriod: any | ||
era: any | ||
hour: any | ||
literal: any | ||
minute: any | ||
month: any | ||
second: any | ||
timeZoneName: any | ||
weekday: any | ||
year: any | ||
} | ||
type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry; | ||
interface DateTimeFormatPart { | ||
@@ -26,0 +41,0 @@ type: DateTimeFormatPartTypes; |
@@ -26,1 +26,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="es2019.symbol" /> | ||
/// <reference lib="es2019.intl" /> |
@@ -21,2 +21,3 @@ /*! ***************************************************************************** | ||
/// <reference lib="es2018.intl" /> | ||
declare namespace Intl { | ||
@@ -55,2 +56,21 @@ | ||
/** | ||
* Value of the `unit` property in objects returned by | ||
* `Intl.RelativeTimeFormat.prototype.formatToParts()`. `formatToParts` and | ||
* `format` methods accept either singular or plural unit names as input, | ||
* but `formatToParts` only outputs singular (e.g. "day") not plural (e.g. | ||
* "days"). | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts). | ||
*/ | ||
type RelativeTimeFormatUnitSingular = | ||
| "year" | ||
| "quarter" | ||
| "month" | ||
| "week" | ||
| "day" | ||
| "hour" | ||
| "minute" | ||
| "second"; | ||
/** | ||
* The locale matching algorithm to use. | ||
@@ -88,3 +108,3 @@ * | ||
*/ | ||
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined; | ||
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined; | ||
@@ -126,7 +146,12 @@ /** | ||
*/ | ||
interface RelativeTimeFormatPart { | ||
type: string; | ||
value: string; | ||
unit?: RelativeTimeFormatUnit; | ||
} | ||
type RelativeTimeFormatPart = | ||
| { | ||
type: "literal"; | ||
value: string; | ||
} | ||
| { | ||
type: Exclude<NumberFormatPartTypes, "literal">; | ||
value: string; | ||
unit: RelativeTimeFormatUnitSingular; | ||
}; | ||
@@ -133,0 +158,0 @@ interface RelativeTimeFormat { |
@@ -23,2 +23,6 @@ /*! ***************************************************************************** | ||
interface DateTimeFormatPartTypesRegistry { | ||
fractionalSecond: any | ||
} | ||
interface DateTimeFormatOptions { | ||
@@ -29,8 +33,12 @@ formatMatcher?: "basic" | "best fit" | "best fit" | undefined; | ||
dayPeriod?: "narrow" | "short" | "long" | undefined; | ||
fractionalSecondDigits?: 0 | 1 | 2 | 3 | undefined; | ||
fractionalSecondDigits?: 1 | 2 | 3 | undefined; | ||
} | ||
interface DateTimeRangeFormatPart extends DateTimeFormatPart { | ||
source: "startRange" | "endRange" | "shared" | ||
} | ||
interface DateTimeFormat { | ||
formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string; | ||
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeFormatPart[]; | ||
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[]; | ||
} | ||
@@ -44,3 +52,3 @@ | ||
dayPeriod?: "narrow" | "short" | "long"; | ||
fractionalSecondDigits?: 0 | 1 | 2 | 3; | ||
fractionalSecondDigits?: 1 | 2 | 3; | ||
} | ||
@@ -47,0 +55,0 @@ |
@@ -26,2 +26,3 @@ /*! ***************************************************************************** | ||
/// <reference lib="es2022.object" /> | ||
/// <reference lib="es2022.sharedmemory" /> | ||
/// <reference lib="es2022.string" /> |
@@ -22,7 +22,7 @@ /*! ***************************************************************************** | ||
interface ErrorOptions { | ||
cause?: Error; | ||
cause?: unknown; | ||
} | ||
interface Error { | ||
cause?: Error; | ||
cause?: unknown; | ||
} | ||
@@ -29,0 +29,0 @@ |
@@ -22,6 +22,10 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
interface NumberRangeFormatPart extends NumberFormatPart { | ||
source: "startRange" | "endRange" | "shared" | ||
} | ||
interface NumberFormat { | ||
formatRange(start: number | bigint, end: number | bigint): string; | ||
formatRangeToParts(start: number | bigint, end: number | bigint): NumberFormatPart[]; | ||
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; | ||
} | ||
} |
@@ -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 { | ||
@@ -63,3 +71,3 @@ [Symbol.iterator](): IterableIterator<string>; | ||
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */ | ||
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction; | ||
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; | ||
} | ||
@@ -108,4 +116,4 @@ | ||
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; | ||
} | ||
@@ -112,0 +120,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://www.typescriptlang.org/", | ||
"version": "4.7.4", | ||
"version": "4.9.5", | ||
"license": "Apache-2.0", | ||
@@ -32,7 +32,17 @@ "description": "TypeScript is a language for application scale JavaScript development", | ||
}, | ||
"packageManager": "npm@6.14.15", | ||
"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", | ||
"@types/glob": "latest", | ||
@@ -42,7 +52,6 @@ "@types/gulp": "^4.0.9", | ||
"@types/gulp-newer": "latest", | ||
"@types/gulp-rename": "0.0.33", | ||
"@types/gulp-sourcemaps": "0.0.32", | ||
"@types/gulp-rename": "latest", | ||
"@types/gulp-sourcemaps": "latest", | ||
"@types/merge2": "latest", | ||
"@types/microsoft__typescript-etw": "latest", | ||
"@types/minimatch": "latest", | ||
"@types/minimist": "latest", | ||
@@ -53,25 +62,23 @@ "@types/mkdirp": "latest", | ||
"@types/node": "latest", | ||
"@types/node-fetch": "^2.3.4", | ||
"@types/q": "latest", | ||
"@types/source-map-support": "latest", | ||
"@types/xml2js": "^0.4.0", | ||
"@typescript-eslint/eslint-plugin": "^4.28.0", | ||
"@typescript-eslint/experimental-utils": "^4.28.0", | ||
"@typescript-eslint/parser": "^4.28.0", | ||
"async": "latest", | ||
"azure-devops-node-api": "^11.0.1", | ||
"@types/which": "^2.0.1", | ||
"@types/xml2js": "^0.4.11", | ||
"@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": "5.1.0", | ||
"diff": "^4.0.2", | ||
"eslint": "7.12.1", | ||
"eslint-formatter-autolinkable-stylish": "1.1.4", | ||
"eslint-plugin-import": "2.22.1", | ||
"eslint-plugin-jsdoc": "30.7.6", | ||
"eslint-plugin-no-null": "1.0.2", | ||
"del": "^6.1.1", | ||
"diff": "^5.1.0", | ||
"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", | ||
"fs-extra": "^9.0.0", | ||
"fs-extra": "^9.1.0", | ||
"glob": "latest", | ||
"gulp": "^4.0.0", | ||
"gulp": "^4.0.2", | ||
"gulp-concat": "latest", | ||
@@ -88,14 +95,13 @@ "gulp-insert": "latest", | ||
"ms": "^2.1.3", | ||
"node-fetch": "^2.6.1", | ||
"prex": "^0.4.3", | ||
"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", | ||
"xml2js": "^0.4.19" | ||
"which": "^2.0.2", | ||
"xml2js": "^0.4.23" | ||
}, | ||
"overrides": { | ||
"es5-ext": "0.10.53" | ||
}, | ||
"scripts": { | ||
"prepare": "gulp build-eslint-rules", | ||
"pretest": "gulp tests", | ||
"test": "gulp runtests-parallel --light=false", | ||
@@ -110,6 +116,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" | ||
}, | ||
@@ -126,5 +129,7 @@ "browser": { | ||
}, | ||
"packageManager": "npm@8.15.0", | ||
"volta": { | ||
"node": "14.15.5" | ||
"node": "14.20.0", | ||
"npm": "8.15.0" | ||
} | ||
} | ||
} |
@@ -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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances 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 3 instances in 1 package
55
-6.78%3
-25%100
25%96298
3%66849652
-0.46%108
-41.94%52
-50.48%