typescript 5.0.0-dev.20230119 → 5.0.0-dev.20230121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/lib.decorators.d.ts +357 -0
- package/lib/lib.decorators.legacy.d.ts +24 -0
- package/lib/lib.dom.d.ts +2300 -2077
- package/lib/lib.dom.iterable.d.ts +14 -0
- package/lib/lib.es5.d.ts +3 -12
- package/lib/lib.webworker.d.ts +1670 -1632
- package/lib/tsc.js +5144 -1814
- package/lib/tsserver.js +6730 -5489
- package/lib/tsserverlibrary.d.ts +183 -1046
- package/lib/tsserverlibrary.js +6612 -5118
- package/lib/typescript.d.ts +129 -1026
- package/lib/typescript.js +6391 -4568
- package/lib/typingsInstaller.js +265 -315
- package/package.json +1 -1
|
@@ -34,6 +34,10 @@ interface BaseAudioContext {
|
|
|
34
34
|
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
interface CSSKeyframesRule {
|
|
38
|
+
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
|
|
39
|
+
}
|
|
40
|
+
|
|
37
41
|
interface CSSRuleList {
|
|
38
42
|
[Symbol.iterator](): IterableIterator<CSSRule>;
|
|
39
43
|
}
|
|
@@ -137,6 +141,16 @@ interface IDBObjectStore {
|
|
|
137
141
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
138
142
|
}
|
|
139
143
|
|
|
144
|
+
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
interface MIDIOutput {
|
|
148
|
+
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
|
|
152
|
+
}
|
|
153
|
+
|
|
140
154
|
interface MediaKeyStatusMap {
|
|
141
155
|
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
|
142
156
|
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ and limitations under the License.
|
|
|
18
18
|
/// <reference no-default-lib="true"/>
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
/// <reference lib="decorators" />
|
|
22
|
+
/// <reference lib="decorators.legacy" />
|
|
23
|
+
|
|
21
24
|
/////////////////////////////
|
|
22
25
|
/// ECMAScript APIs
|
|
23
26
|
/////////////////////////////
|
|
@@ -1137,13 +1140,6 @@ interface JSON {
|
|
|
1137
1140
|
* If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
1138
1141
|
*/
|
|
1139
1142
|
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
|
|
1140
|
-
/**
|
|
1141
|
-
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
|
1142
|
-
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
1143
|
-
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
|
|
1144
|
-
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
1145
|
-
*/
|
|
1146
|
-
stringify(value: Function | Symbol | undefined, replacer?: (number | string)[] | null, space?: string | number): undefined;
|
|
1147
1143
|
/**
|
|
1148
1144
|
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
|
1149
1145
|
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
@@ -1510,11 +1506,6 @@ interface TypedPropertyDescriptor<T> {
|
|
|
1510
1506
|
set?: (value: T) => void;
|
|
1511
1507
|
}
|
|
1512
1508
|
|
|
1513
|
-
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
|
|
1514
|
-
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
|
|
1515
|
-
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
1516
|
-
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
1517
|
-
|
|
1518
1509
|
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
|
|
1519
1510
|
|
|
1520
1511
|
interface PromiseLike<T> {
|