@oxc-project/types 0.104.0 → 0.106.0
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/package.json +6 -6
- package/types.d.ts +2 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxc-project/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.0",
|
|
4
4
|
"description": "Types for Oxc AST nodes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"AST",
|
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
],
|
|
9
9
|
"homepage": "https://oxc.rs",
|
|
10
10
|
"bugs": "https://github.com/oxc-project/oxc/issues",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "Boshen and oxc contributors",
|
|
11
13
|
"repository": {
|
|
12
14
|
"type": "git",
|
|
13
15
|
"url": "git+https://github.com/oxc-project/oxc.git",
|
|
14
16
|
"directory": "npm/oxc-types"
|
|
15
17
|
},
|
|
16
|
-
"author": "Boshen and oxc contributors",
|
|
17
18
|
"funding": {
|
|
18
19
|
"url": "https://github.com/sponsors/Boshen"
|
|
19
20
|
},
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"type": "module",
|
|
22
|
-
"types": "types.d.ts",
|
|
23
21
|
"files": [
|
|
24
22
|
"types.d.ts"
|
|
25
|
-
]
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"types": "types.d.ts"
|
|
26
26
|
}
|
package/types.d.ts
CHANGED
|
@@ -589,16 +589,7 @@ export interface DebuggerStatement extends Span {
|
|
|
589
589
|
parent?: Node;
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
export type BindingPattern =
|
|
593
|
-
optional?: boolean;
|
|
594
|
-
typeAnnotation?: TSTypeAnnotation | null;
|
|
595
|
-
} & (BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern);
|
|
596
|
-
|
|
597
|
-
export type BindingPatternKind =
|
|
598
|
-
| BindingIdentifier
|
|
599
|
-
| ObjectPattern
|
|
600
|
-
| ArrayPattern
|
|
601
|
-
| AssignmentPattern;
|
|
592
|
+
export type BindingPattern = BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern;
|
|
602
593
|
|
|
603
594
|
export interface AssignmentPattern extends Span {
|
|
604
595
|
type: "AssignmentPattern";
|
|
@@ -674,7 +665,7 @@ export type FunctionType =
|
|
|
674
665
|
|
|
675
666
|
export interface FormalParameterRest extends Span {
|
|
676
667
|
type: "RestElement";
|
|
677
|
-
argument:
|
|
668
|
+
argument: BindingPattern;
|
|
678
669
|
decorators?: [];
|
|
679
670
|
optional?: boolean;
|
|
680
671
|
typeAnnotation?: TSTypeAnnotation | null;
|