@oxc-project/types 0.61.1 → 0.62.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 +21 -9
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 {
|
|
@@ -1167,7 +1173,7 @@ export interface TSClassImplements extends Span {
|
|
|
1167
1173
|
export interface TSInterfaceDeclaration extends Span {
|
|
1168
1174
|
type: 'TSInterfaceDeclaration';
|
|
1169
1175
|
id: BindingIdentifier;
|
|
1170
|
-
extends: Array<TSInterfaceHeritage
|
|
1176
|
+
extends: Array<TSInterfaceHeritage>;
|
|
1171
1177
|
typeParameters: TSTypeParameterDeclaration | null;
|
|
1172
1178
|
body: TSInterfaceBody;
|
|
1173
1179
|
declare: boolean;
|
|
@@ -1185,6 +1191,8 @@ export interface TSPropertySignature extends Span {
|
|
|
1185
1191
|
readonly: boolean;
|
|
1186
1192
|
key: PropertyKey;
|
|
1187
1193
|
typeAnnotation: TSTypeAnnotation | null;
|
|
1194
|
+
accessibility: null;
|
|
1195
|
+
static: false;
|
|
1188
1196
|
}
|
|
1189
1197
|
|
|
1190
1198
|
export type TSSignature =
|
|
@@ -1200,12 +1208,12 @@ export interface TSIndexSignature extends Span {
|
|
|
1200
1208
|
typeAnnotation: TSTypeAnnotation;
|
|
1201
1209
|
readonly: boolean;
|
|
1202
1210
|
static: boolean;
|
|
1211
|
+
accessibility: null;
|
|
1203
1212
|
}
|
|
1204
1213
|
|
|
1205
1214
|
export interface TSCallSignatureDeclaration extends Span {
|
|
1206
1215
|
type: 'TSCallSignatureDeclaration';
|
|
1207
1216
|
typeParameters: TSTypeParameterDeclaration | null;
|
|
1208
|
-
thisParam: TSThisParameter | null;
|
|
1209
1217
|
params: ParamPattern[];
|
|
1210
1218
|
returnType: TSTypeAnnotation | null;
|
|
1211
1219
|
}
|
|
@@ -1219,9 +1227,11 @@ export interface TSMethodSignature extends Span {
|
|
|
1219
1227
|
optional: boolean;
|
|
1220
1228
|
kind: TSMethodSignatureKind;
|
|
1221
1229
|
typeParameters: TSTypeParameterDeclaration | null;
|
|
1222
|
-
thisParam: TSThisParameter | null;
|
|
1223
1230
|
params: ParamPattern[];
|
|
1224
1231
|
returnType: TSTypeAnnotation | null;
|
|
1232
|
+
accessibility: null;
|
|
1233
|
+
readonly: false;
|
|
1234
|
+
static: false;
|
|
1225
1235
|
}
|
|
1226
1236
|
|
|
1227
1237
|
export interface TSConstructSignatureDeclaration extends Span {
|
|
@@ -1235,6 +1245,8 @@ export interface TSIndexSignatureName extends Span {
|
|
|
1235
1245
|
type: 'Identifier';
|
|
1236
1246
|
name: string;
|
|
1237
1247
|
typeAnnotation: TSTypeAnnotation;
|
|
1248
|
+
decorators: [];
|
|
1249
|
+
optional: false;
|
|
1238
1250
|
}
|
|
1239
1251
|
|
|
1240
1252
|
export interface TSInterfaceHeritage extends Span {
|
|
@@ -1258,6 +1270,7 @@ export interface TSModuleDeclaration extends Span {
|
|
|
1258
1270
|
body: TSModuleDeclarationBody | null;
|
|
1259
1271
|
kind: TSModuleDeclarationKind;
|
|
1260
1272
|
declare: boolean;
|
|
1273
|
+
global: boolean;
|
|
1261
1274
|
}
|
|
1262
1275
|
|
|
1263
1276
|
export type TSModuleDeclarationKind = 'global' | 'module' | 'namespace';
|
|
@@ -1301,7 +1314,6 @@ export interface TSImportType extends Span {
|
|
|
1301
1314
|
export interface TSFunctionType extends Span {
|
|
1302
1315
|
type: 'TSFunctionType';
|
|
1303
1316
|
typeParameters: TSTypeParameterDeclaration | null;
|
|
1304
|
-
thisParam: TSThisParameter | null;
|
|
1305
1317
|
params: ParamPattern[];
|
|
1306
1318
|
returnType: TSTypeAnnotation;
|
|
1307
1319
|
}
|