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