@oxc-project/types 0.61.1 → 0.61.2
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 +15 -7
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -70,6 +70,9 @@ export interface IdentifierReference extends Span {
|
|
|
70
70
|
export interface BindingIdentifier extends Span {
|
|
71
71
|
type: 'Identifier';
|
|
72
72
|
name: string;
|
|
73
|
+
decorators?: [];
|
|
74
|
+
optional?: false;
|
|
75
|
+
typeAnnotation?: null;
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
export interface LabelIdentifier extends Span {
|
|
@@ -513,6 +516,7 @@ export interface AssignmentPattern extends Span {
|
|
|
513
516
|
type: 'AssignmentPattern';
|
|
514
517
|
left: BindingPattern;
|
|
515
518
|
right: Expression;
|
|
519
|
+
decorators?: [];
|
|
516
520
|
}
|
|
517
521
|
|
|
518
522
|
export interface ObjectPattern extends Span {
|
|
@@ -533,6 +537,9 @@ export interface BindingProperty extends Span {
|
|
|
533
537
|
export interface ArrayPattern extends Span {
|
|
534
538
|
type: 'ArrayPattern';
|
|
535
539
|
elements: Array<BindingPattern | BindingRestElement | null>;
|
|
540
|
+
decorators?: [];
|
|
541
|
+
optional?: false;
|
|
542
|
+
typeAnnotation?: null;
|
|
536
543
|
}
|
|
537
544
|
|
|
538
545
|
export interface BindingRestElement extends Span {
|
|
@@ -550,7 +557,6 @@ export interface Function extends Span {
|
|
|
550
557
|
body: FunctionBody | null;
|
|
551
558
|
declare?: boolean;
|
|
552
559
|
typeParameters?: TSTypeParameterDeclaration | null;
|
|
553
|
-
thisParam?: TSThisParameter | null;
|
|
554
560
|
returnType?: TSTypeAnnotation | null;
|
|
555
561
|
}
|
|
556
562
|
|
|
@@ -572,9 +578,6 @@ export interface FormalParameterRest extends Span {
|
|
|
572
578
|
export type FormalParameter =
|
|
573
579
|
& ({
|
|
574
580
|
decorators?: Array<Decorator>;
|
|
575
|
-
accessibility?: TSAccessibility | null;
|
|
576
|
-
readonly?: boolean;
|
|
577
|
-
override?: boolean;
|
|
578
581
|
})
|
|
579
582
|
& BindingPattern;
|
|
580
583
|
|
|
@@ -915,8 +918,11 @@ export interface JSXText extends Span {
|
|
|
915
918
|
}
|
|
916
919
|
|
|
917
920
|
export interface TSThisParameter extends Span {
|
|
918
|
-
type: '
|
|
921
|
+
type: 'Identifier';
|
|
922
|
+
name: 'this';
|
|
919
923
|
typeAnnotation: TSTypeAnnotation | null;
|
|
924
|
+
decorators: [];
|
|
925
|
+
optional: false;
|
|
920
926
|
}
|
|
921
927
|
|
|
922
928
|
export interface TSEnumDeclaration extends Span {
|
|
@@ -1200,12 +1206,12 @@ export interface TSIndexSignature extends Span {
|
|
|
1200
1206
|
typeAnnotation: TSTypeAnnotation;
|
|
1201
1207
|
readonly: boolean;
|
|
1202
1208
|
static: boolean;
|
|
1209
|
+
accessibility?: null;
|
|
1203
1210
|
}
|
|
1204
1211
|
|
|
1205
1212
|
export interface TSCallSignatureDeclaration extends Span {
|
|
1206
1213
|
type: 'TSCallSignatureDeclaration';
|
|
1207
1214
|
typeParameters: TSTypeParameterDeclaration | null;
|
|
1208
|
-
thisParam: TSThisParameter | null;
|
|
1209
1215
|
params: ParamPattern[];
|
|
1210
1216
|
returnType: TSTypeAnnotation | null;
|
|
1211
1217
|
}
|
|
@@ -1235,6 +1241,8 @@ export interface TSIndexSignatureName extends Span {
|
|
|
1235
1241
|
type: 'Identifier';
|
|
1236
1242
|
name: string;
|
|
1237
1243
|
typeAnnotation: TSTypeAnnotation;
|
|
1244
|
+
decorators?: [];
|
|
1245
|
+
optional?: false;
|
|
1238
1246
|
}
|
|
1239
1247
|
|
|
1240
1248
|
export interface TSInterfaceHeritage extends Span {
|
|
@@ -1258,6 +1266,7 @@ export interface TSModuleDeclaration extends Span {
|
|
|
1258
1266
|
body: TSModuleDeclarationBody | null;
|
|
1259
1267
|
kind: TSModuleDeclarationKind;
|
|
1260
1268
|
declare: boolean;
|
|
1269
|
+
global: boolean;
|
|
1261
1270
|
}
|
|
1262
1271
|
|
|
1263
1272
|
export type TSModuleDeclarationKind = 'global' | 'module' | 'namespace';
|
|
@@ -1301,7 +1310,6 @@ export interface TSImportType extends Span {
|
|
|
1301
1310
|
export interface TSFunctionType extends Span {
|
|
1302
1311
|
type: 'TSFunctionType';
|
|
1303
1312
|
typeParameters: TSTypeParameterDeclaration | null;
|
|
1304
|
-
thisParam: TSThisParameter | null;
|
|
1305
1313
|
params: ParamPattern[];
|
|
1306
1314
|
returnType: TSTypeAnnotation;
|
|
1307
1315
|
}
|