| 503 | export { TSClassImplements as TSInterfaceHeritage }; |
| 504 | |
| 505 | export function TSInterfaceDeclaration( |
| 506 | this: Printer, |
| 507 | node: t.TSInterfaceDeclaration, |
| 508 | ) { |
| 509 | const { declare, id, typeParameters, extends: extendz, body } = node; |
| 510 | if (declare) { |
| 511 | this.word("declare"); |
| 512 | this.space(); |
| 513 | } |
| 514 | this.word("interface"); |
| 515 | this.space(); |
| 516 | this.print(id); |
| 517 | this.print(typeParameters); |
| 518 | if (extendz?.length) { |
| 519 | this.space(); |
| 520 | this.word("extends"); |
| 521 | this.space(); |
| 522 | this.printList(extendz); |
| 523 | } |
| 524 | this.space(); |
| 525 | this.print(body); |
| 526 | } |
| 527 | |
| 528 | export function TSInterfaceBody(this: Printer, node: t.TSInterfaceBody) { |
| 529 | printBraced(this, node, () => |