@typescript-deploys/pr-build 5.2.0-pr-52899-13 → 5.2.0-pr-54657-9
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 +15 -0
- package/lib/lib.dom.d.ts +313 -90
- package/lib/lib.esnext.d.ts +2 -0
- package/lib/lib.esnext.decorators.d.ts +23 -0
- package/lib/lib.esnext.disposable.d.ts +185 -0
- package/lib/lib.webworker.d.ts +172 -33
- package/lib/tsc.js +7424 -6028
- package/lib/tsserver.js +9322 -7878
- package/lib/tsserverlibrary.d.ts +256 -245
- package/lib/tsserverlibrary.js +9317 -7879
- package/lib/typescript.d.ts +256 -245
- package/lib/typescript.js +9294 -7877
- package/lib/typingsInstaller.js +1691 -1552
- package/package.json +2 -2
package/lib/lib.decorators.d.ts
CHANGED
|
@@ -35,6 +35,9 @@ type DecoratorContext =
|
|
|
35
35
|
| ClassMemberDecoratorContext
|
|
36
36
|
;
|
|
37
37
|
|
|
38
|
+
type DecoratorMetadata =
|
|
39
|
+
typeof globalThis extends { Symbol: { readonly metadata: symbol } } ? object : object | undefined;
|
|
40
|
+
|
|
38
41
|
/**
|
|
39
42
|
* Context provided to a class decorator.
|
|
40
43
|
* @template Class The type of the decorated class associated with this context.
|
|
@@ -66,6 +69,8 @@ interface ClassDecoratorContext<
|
|
|
66
69
|
* ```
|
|
67
70
|
*/
|
|
68
71
|
addInitializer(initializer: (this: Class) => void): void;
|
|
72
|
+
|
|
73
|
+
readonly metadata: DecoratorMetadata;
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
/**
|
|
@@ -130,6 +135,8 @@ interface ClassMethodDecoratorContext<
|
|
|
130
135
|
* ```
|
|
131
136
|
*/
|
|
132
137
|
addInitializer(initializer: (this: This) => void): void;
|
|
138
|
+
|
|
139
|
+
readonly metadata: DecoratorMetadata;
|
|
133
140
|
}
|
|
134
141
|
|
|
135
142
|
/**
|
|
@@ -175,6 +182,8 @@ interface ClassGetterDecoratorContext<
|
|
|
175
182
|
* decorating a non-`static` element).
|
|
176
183
|
*/
|
|
177
184
|
addInitializer(initializer: (this: This) => void): void;
|
|
185
|
+
|
|
186
|
+
readonly metadata: DecoratorMetadata;
|
|
178
187
|
}
|
|
179
188
|
|
|
180
189
|
/**
|
|
@@ -220,6 +229,8 @@ interface ClassSetterDecoratorContext<
|
|
|
220
229
|
* decorating a non-`static` element).
|
|
221
230
|
*/
|
|
222
231
|
addInitializer(initializer: (this: This) => void): void;
|
|
232
|
+
|
|
233
|
+
readonly metadata: DecoratorMetadata;
|
|
223
234
|
}
|
|
224
235
|
|
|
225
236
|
/**
|
|
@@ -274,6 +285,8 @@ interface ClassAccessorDecoratorContext<
|
|
|
274
285
|
* decorating a non-`static` element).
|
|
275
286
|
*/
|
|
276
287
|
addInitializer(initializer: (this: This) => void): void;
|
|
288
|
+
|
|
289
|
+
readonly metadata: DecoratorMetadata;
|
|
277
290
|
}
|
|
278
291
|
|
|
279
292
|
/**
|
|
@@ -369,4 +382,6 @@ interface ClassFieldDecoratorContext<
|
|
|
369
382
|
* decorating a non-`static` element).
|
|
370
383
|
*/
|
|
371
384
|
addInitializer(initializer: (this: This) => void): void;
|
|
385
|
+
|
|
386
|
+
readonly metadata: DecoratorMetadata;
|
|
372
387
|
}
|