@putout/babel 2.9.0 → 2.10.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/bundle/index.d.ts CHANGED
@@ -418,7 +418,7 @@ interface ClassExpression extends BaseNode {
418
418
  decorators: Array<Decorator> | null;
419
419
  implements: Array<TSClassImplements | ClassImplements> | null;
420
420
  mixins: InterfaceExtends | null;
421
- superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
421
+ superTypeArguments: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
422
422
  typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | null;
423
423
  }
424
424
 
@@ -432,7 +432,7 @@ interface ClassDeclaration extends BaseNode {
432
432
  declare: boolean | null;
433
433
  implements: Array<TSClassImplements | ClassImplements> | null;
434
434
  mixins: InterfaceExtends | null;
435
- superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
435
+ superTypeArguments: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
436
436
  typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | null;
437
437
  }
438
438
 
@@ -1410,7 +1410,7 @@ interface TSConstructorType extends BaseNode {
1410
1410
  interface TSTypeReference extends BaseNode {
1411
1411
  type: "TSTypeReference";
1412
1412
  typeName: TSEntityName;
1413
- typeParameters: TSTypeParameterInstantiation | null;
1413
+ typeArguments: TSTypeParameterInstantiation | null;
1414
1414
  }
1415
1415
 
1416
1416
  interface TSTypePredicate extends BaseNode {
@@ -1588,10 +1588,9 @@ interface TSEnumMember extends BaseNode {
1588
1588
 
1589
1589
  interface TSModuleDeclaration extends BaseNode {
1590
1590
  type: "TSModuleDeclaration";
1591
- id: Identifier | StringLiteral;
1592
- body: TSModuleBlock | TSModuleDeclaration;
1591
+ id: TSEntityName | StringLiteral;
1592
+ body: TSModuleBlock;
1593
1593
  declare: boolean | null;
1594
- global: boolean | null;
1595
1594
  kind: "global" | "module" | "namespace";
1596
1595
  }
1597
1596
 
@@ -1995,7 +1994,7 @@ declare function tsVoidKeyword(): TSVoidKeyword;
1995
1994
  declare function tsThisType(): TSThisType;
1996
1995
  declare function tsFunctionType(typeParameters: TSTypeParameterDeclaration | null | undefined, params: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>, returnType?: TSTypeAnnotation | null): TSFunctionType;
1997
1996
  declare function tsConstructorType(typeParameters: TSTypeParameterDeclaration | null | undefined, params: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>, returnType?: TSTypeAnnotation | null): TSConstructorType;
1998
- declare function tsTypeReference(typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSTypeReference;
1997
+ declare function tsTypeReference(typeName: TSEntityName, typeArguments?: TSTypeParameterInstantiation | null): TSTypeReference;
1999
1998
  declare function tsTypePredicate(parameterName: Identifier | TSThisType, typeAnnotation?: TSTypeAnnotation | null, asserts?: boolean | null): TSTypePredicate;
2000
1999
  declare function tsTypeQuery(exprName: TSEntityName | TSImportType, typeParameters?: TSTypeParameterInstantiation | null): TSTypeQuery;
2001
2000
  declare function tsTypeLiteral(members: Array<TSTypeElement>): TSTypeLiteral;
@@ -2024,7 +2023,7 @@ declare function tsSatisfiesExpression(expression: Expression, typeAnnotation: T
2024
2023
  declare function tsTypeAssertion(typeAnnotation: TSType, expression: Expression): TSTypeAssertion;
2025
2024
  declare function tsEnumDeclaration(id: Identifier, members: Array<TSEnumMember>): TSEnumDeclaration;
2026
2025
  declare function tsEnumMember(id: Identifier | StringLiteral, initializer?: Expression | null): TSEnumMember;
2027
- declare function tsModuleDeclaration(id: Identifier | StringLiteral, body: TSModuleBlock | TSModuleDeclaration): TSModuleDeclaration;
2026
+ declare function tsModuleDeclaration(id: TSEntityName | StringLiteral, body: TSModuleBlock): TSModuleDeclaration;
2028
2027
  declare function tsModuleBlock(body: Array<Statement>): TSModuleBlock;
2029
2028
  declare function tsImportType(argument: StringLiteral, qualifier?: TSEntityName | null, typeParameters?: TSTypeParameterInstantiation | null): TSImportType;
2030
2029
  declare function tsImportEqualsDeclaration(id: Identifier, moduleReference: TSEntityName | TSExternalModuleReference): TSImportEqualsDeclaration;