@oxc-project/types 0.66.0 → 0.67.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 +6 -8
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -544,6 +544,8 @@ export interface ObjectPattern extends Span {
|
|
|
544
544
|
type: 'ObjectPattern';
|
|
545
545
|
properties: Array<BindingProperty | BindingRestElement>;
|
|
546
546
|
decorators?: [];
|
|
547
|
+
optional?: false;
|
|
548
|
+
typeAnnotation?: null;
|
|
547
549
|
}
|
|
548
550
|
|
|
549
551
|
export interface BindingProperty extends Span {
|
|
@@ -1174,7 +1176,7 @@ export interface TSTypeReference extends Span {
|
|
|
1174
1176
|
typeArguments: TSTypeParameterInstantiation | null;
|
|
1175
1177
|
}
|
|
1176
1178
|
|
|
1177
|
-
export type TSTypeName = IdentifierReference | TSQualifiedName;
|
|
1179
|
+
export type TSTypeName = IdentifierReference | ThisExpression | TSQualifiedName;
|
|
1178
1180
|
|
|
1179
1181
|
export interface TSQualifiedName extends Span {
|
|
1180
1182
|
type: 'TSQualifiedName';
|
|
@@ -1214,7 +1216,7 @@ export type TSAccessibility = 'private' | 'protected' | 'public';
|
|
|
1214
1216
|
|
|
1215
1217
|
export interface TSClassImplements extends Span {
|
|
1216
1218
|
type: 'TSClassImplements';
|
|
1217
|
-
expression:
|
|
1219
|
+
expression: IdentifierReference | ThisExpression | MemberExpression;
|
|
1218
1220
|
typeArguments: TSTypeParameterInstantiation | null;
|
|
1219
1221
|
}
|
|
1220
1222
|
|
|
@@ -1314,8 +1316,8 @@ export type TSTypePredicateName = IdentifierName | TSThisType;
|
|
|
1314
1316
|
|
|
1315
1317
|
export interface TSModuleDeclaration extends Span {
|
|
1316
1318
|
type: 'TSModuleDeclaration';
|
|
1317
|
-
id:
|
|
1318
|
-
body:
|
|
1319
|
+
id: BindingIdentifier | StringLiteral | TSQualifiedName;
|
|
1320
|
+
body: TSModuleBlock | null;
|
|
1319
1321
|
kind: TSModuleDeclarationKind;
|
|
1320
1322
|
declare: boolean;
|
|
1321
1323
|
global: boolean;
|
|
@@ -1323,10 +1325,6 @@ export interface TSModuleDeclaration extends Span {
|
|
|
1323
1325
|
|
|
1324
1326
|
export type TSModuleDeclarationKind = 'global' | 'module' | 'namespace';
|
|
1325
1327
|
|
|
1326
|
-
export type TSModuleDeclarationName = BindingIdentifier | StringLiteral;
|
|
1327
|
-
|
|
1328
|
-
export type TSModuleDeclarationBody = TSModuleDeclaration | TSModuleBlock;
|
|
1329
|
-
|
|
1330
1328
|
export interface TSModuleBlock extends Span {
|
|
1331
1329
|
type: 'TSModuleBlock';
|
|
1332
1330
|
body: Array<Directive | Statement>;
|