@oxc-project/types 0.95.0 → 0.96.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 +1 -1
- package/types.d.ts +7 -11
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -583,12 +583,10 @@ export interface DebuggerStatement extends Span {
|
|
|
583
583
|
parent?: Node;
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
-
export type BindingPattern =
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
})
|
|
591
|
-
& (BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern);
|
|
586
|
+
export type BindingPattern = {
|
|
587
|
+
optional?: boolean;
|
|
588
|
+
typeAnnotation?: TSTypeAnnotation | null;
|
|
589
|
+
} & (BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern);
|
|
592
590
|
|
|
593
591
|
export type BindingPatternKind = BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern;
|
|
594
592
|
|
|
@@ -673,11 +671,9 @@ export interface FormalParameterRest extends Span {
|
|
|
673
671
|
value?: null;
|
|
674
672
|
}
|
|
675
673
|
|
|
676
|
-
export type FormalParameter =
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
})
|
|
680
|
-
& BindingPattern;
|
|
674
|
+
export type FormalParameter = {
|
|
675
|
+
decorators?: Array<Decorator>;
|
|
676
|
+
} & BindingPattern;
|
|
681
677
|
|
|
682
678
|
export interface TSParameterProperty extends Span {
|
|
683
679
|
type: 'TSParameterProperty';
|