@tsrs/linux-x64-gnu 0.18.0-ts7.1.0-dev.20260929 → 0.20.1-ts7.1.0-beta
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/README.md +1 -1
- package/lib.decorators.d.ts +14 -7
- package/lib.dom.d.ts +1193 -277
- package/lib.es2022.array.d.ts +13 -13
- package/lib.es2023.intl.d.ts +4 -0
- package/lib.esnext.d.ts +3 -0
- package/lib.esnext.iterator.d.ts +149 -0
- package/lib.esnext.modulesource.d.ts +21 -0
- package/lib.esnext.promise.d.ts +35 -0
- package/lib.webworker.d.ts +418 -26
- package/package.json +4 -1
- package/tsrs +0 -0
package/README.md
CHANGED
|
@@ -4,5 +4,5 @@ The `linux-x64-gnu` binary of [`tsrs`](https://www.npmjs.com/package/tsrs), a Ru
|
|
|
4
4
|
TypeScript 7 type checker. Do not install this package directly: install `tsrs`, which depends on it
|
|
5
5
|
through `optionalDependencies` and runs it via `tsrs`.
|
|
6
6
|
|
|
7
|
-
Version 0.
|
|
7
|
+
Version 0.20.1-ts7.1.0-beta ports microsoft/TypeScript@3e9236361fa9. Licensed under Apache-2.0 as a derivative of
|
|
8
8
|
TypeScript; see `LICENSE` and `NOTICE.txt`.
|
package/lib.decorators.d.ts
CHANGED
|
@@ -53,16 +53,19 @@ interface ClassDecoratorContext<
|
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* ```ts
|
|
56
|
-
* function customElement(name: string)
|
|
57
|
-
* return
|
|
56
|
+
* function customElement(name: string) {
|
|
57
|
+
* return <Class extends CustomElementConstructor>(
|
|
58
|
+
* target: Class,
|
|
59
|
+
* context: ClassDecoratorContext<Class>,
|
|
60
|
+
* ) => {
|
|
58
61
|
* context.addInitializer(function () {
|
|
59
62
|
* customElements.define(name, this);
|
|
60
63
|
* });
|
|
61
|
-
* }
|
|
64
|
+
* };
|
|
62
65
|
* }
|
|
63
66
|
*
|
|
64
67
|
* @customElement("my-element")
|
|
65
|
-
* class MyElement {}
|
|
68
|
+
* class MyElement extends HTMLElement {}
|
|
66
69
|
* ```
|
|
67
70
|
*/
|
|
68
71
|
addInitializer(initializer: (this: Class) => void): void;
|
|
@@ -114,10 +117,14 @@ interface ClassMethodDecoratorContext<
|
|
|
114
117
|
*
|
|
115
118
|
* @example
|
|
116
119
|
* ```ts
|
|
117
|
-
*
|
|
120
|
+
* function bound<This, Value extends (...args: any) => any>(
|
|
121
|
+
* value: Value,
|
|
122
|
+
* context: ClassMethodDecoratorContext<This, Value>,
|
|
123
|
+
* ) {
|
|
118
124
|
* if (context.private) throw new TypeError("Not supported on private methods.");
|
|
119
|
-
* context.addInitializer(function () {
|
|
120
|
-
*
|
|
125
|
+
* context.addInitializer(function (this: This) {
|
|
126
|
+
* const self = this as Record<PropertyKey, any>;
|
|
127
|
+
* self[context.name] = self[context.name].bind(this);
|
|
121
128
|
* });
|
|
122
129
|
* }
|
|
123
130
|
*
|