@typescript/typescript-darwin-arm64 7.1.0-dev.20261012.1 → 7.1.0-dev.20261013.1
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 +14 -7
- package/lib/lib.es2023.intl.d.ts +4 -0
- package/lib/tsc +0 -0
- package/package.json +2 -2
package/lib/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
|
*
|
package/lib/lib.es2023.intl.d.ts
CHANGED
|
@@ -59,4 +59,8 @@ declare namespace Intl {
|
|
|
59
59
|
formatRange(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): string;
|
|
60
60
|
formatRangeToParts(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): NumberRangeFormatPart[];
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
interface PluralRules {
|
|
64
|
+
selectRange(start: number, end: number): LDMLPluralRule;
|
|
65
|
+
}
|
|
62
66
|
}
|
package/lib/tsc
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript/typescript-darwin-arm64",
|
|
3
|
-
"version": "7.1.0-dev.
|
|
3
|
+
"version": "7.1.0-dev.20261013.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Microsoft Corp.",
|
|
6
6
|
"homepage": "https://www.typescriptlang.org/",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"exports": {
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "b5c34ba0c61a756c8abaf133236dddf982c27f45",
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public",
|
|
37
37
|
"tag": "next"
|