typescript 4.8.0-dev.20220809 → 4.9.0-dev.20220811
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.es2015.reflect.d.ts +25 -2
- package/lib/lib.es5.d.ts +13 -3
- package/lib/tsc.js +190 -118
- package/lib/tsserver.js +269 -157
- package/lib/tsserverlibrary.d.ts +1 -1
- package/lib/tsserverlibrary.js +269 -352
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +269 -352
- package/lib/typescriptServices.d.ts +1 -1
- package/lib/typescriptServices.js +269 -352
- package/lib/typingsInstaller.js +208 -128
- package/package.json +1 -1
|
@@ -26,6 +26,11 @@ declare namespace Reflect {
|
|
|
26
26
|
* @param thisArgument The object to be used as the this object.
|
|
27
27
|
* @param argumentsList An array of argument values to be passed to the function.
|
|
28
28
|
*/
|
|
29
|
+
function apply<T, A extends readonly any[], R>(
|
|
30
|
+
target: (this: T, ...args: A) => R,
|
|
31
|
+
thisArgument: T,
|
|
32
|
+
argumentsList: Readonly<A>,
|
|
33
|
+
): R;
|
|
29
34
|
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
|
|
30
35
|
|
|
31
36
|
/**
|
|
@@ -35,6 +40,11 @@ declare namespace Reflect {
|
|
|
35
40
|
* @param argumentsList An array of argument values to be passed to the constructor.
|
|
36
41
|
* @param newTarget The constructor to be used as the `new.target` object.
|
|
37
42
|
*/
|
|
43
|
+
function construct<A extends readonly any[], R>(
|
|
44
|
+
target: new (...args: A) => R,
|
|
45
|
+
argumentsList: Readonly<A>,
|
|
46
|
+
newTarget?: new (...args: any) => any,
|
|
47
|
+
): R;
|
|
38
48
|
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
|
|
39
49
|
|
|
40
50
|
/**
|
|
@@ -61,7 +71,11 @@ declare namespace Reflect {
|
|
|
61
71
|
* @param receiver The reference to use as the `this` value in the getter function,
|
|
62
72
|
* if `target[propertyKey]` is an accessor property.
|
|
63
73
|
*/
|
|
64
|
-
function get
|
|
74
|
+
function get<T extends object, P extends PropertyKey>(
|
|
75
|
+
target: T,
|
|
76
|
+
propertyKey: P,
|
|
77
|
+
receiver?: unknown,
|
|
78
|
+
): P extends keyof T ? T[P] : any;
|
|
65
79
|
|
|
66
80
|
/**
|
|
67
81
|
* Gets the own property descriptor of the specified object.
|
|
@@ -69,7 +83,10 @@ declare namespace Reflect {
|
|
|
69
83
|
* @param target Object that contains the property.
|
|
70
84
|
* @param propertyKey The property name.
|
|
71
85
|
*/
|
|
72
|
-
function getOwnPropertyDescriptor
|
|
86
|
+
function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(
|
|
87
|
+
target: T,
|
|
88
|
+
propertyKey: P,
|
|
89
|
+
): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;
|
|
73
90
|
|
|
74
91
|
/**
|
|
75
92
|
* Returns the prototype of an object.
|
|
@@ -111,6 +128,12 @@ declare namespace Reflect {
|
|
|
111
128
|
* @param receiver The reference to use as the `this` value in the setter function,
|
|
112
129
|
* if `target[propertyKey]` is an accessor property.
|
|
113
130
|
*/
|
|
131
|
+
function set<T extends object, P extends PropertyKey>(
|
|
132
|
+
target: T,
|
|
133
|
+
propertyKey: P,
|
|
134
|
+
value: P extends keyof T ? T[P] : any,
|
|
135
|
+
receiver?: any,
|
|
136
|
+
): boolean;
|
|
114
137
|
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
|
|
115
138
|
|
|
116
139
|
/**
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -908,7 +908,17 @@ interface Date {
|
|
|
908
908
|
interface DateConstructor {
|
|
909
909
|
new(): Date;
|
|
910
910
|
new(value: number | string): Date;
|
|
911
|
-
|
|
911
|
+
/**
|
|
912
|
+
* Creates a new Date.
|
|
913
|
+
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
|
|
914
|
+
* @param monthIndex The month as a number between 0 and 11 (January to December).
|
|
915
|
+
* @param date The date as a number between 1 and 31.
|
|
916
|
+
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
|
|
917
|
+
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
|
|
918
|
+
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
|
|
919
|
+
* @param ms A number from 0 to 999 that specifies the milliseconds.
|
|
920
|
+
*/
|
|
921
|
+
new(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
|
|
912
922
|
(): string;
|
|
913
923
|
readonly prototype: Date;
|
|
914
924
|
/**
|
|
@@ -919,14 +929,14 @@ interface DateConstructor {
|
|
|
919
929
|
/**
|
|
920
930
|
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
|
|
921
931
|
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
|
|
922
|
-
* @param
|
|
932
|
+
* @param monthIndex The month as a number between 0 and 11 (January to December).
|
|
923
933
|
* @param date The date as a number between 1 and 31.
|
|
924
934
|
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
|
|
925
935
|
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
|
|
926
936
|
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
|
|
927
937
|
* @param ms A number from 0 to 999 that specifies the milliseconds.
|
|
928
938
|
*/
|
|
929
|
-
UTC(year: number,
|
|
939
|
+
UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
|
|
930
940
|
now(): number;
|
|
931
941
|
}
|
|
932
942
|
|