@tsrs/linux-x64-gnu 0.18.0-ts7.1.0-dev.20260929 → 0.20.0-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 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.18.0-ts7.1.0-dev.20260929 ports microsoft/TypeScript@b85298b6a81f. Licensed under Apache-2.0 as a derivative of
7
+ Version 0.20.0-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`.
@@ -53,16 +53,19 @@ interface ClassDecoratorContext<
53
53
  *
54
54
  * @example
55
55
  * ```ts
56
- * function customElement(name: string): ClassDecoratorFunction {
57
- * return (target, context) => {
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
- * const bound: ClassMethodDecoratorFunction = (value, context) {
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
- * this[context.name] = this[context.name].bind(this);
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
  *