@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +7 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.95.0",
3
+ "version": "0.96.0",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "type": "module",
6
6
  "keywords": [
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
- optional?: boolean;
589
- typeAnnotation?: TSTypeAnnotation | null;
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
- decorators?: Array<Decorator>;
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';