microsoft/rushstack

[api-extractor] `{}` gets cleared at the end of a line

wmertens opened this issue · 1 comments

Summary

When extracting a type that uses {} for an empty object, it gets removed and the resulting file is invalid

Repro steps

type Foo = {
  bar: { yes: boolean }
} & {
  [key: string]: {};
}

Expected result:
[key: string]: {};
Actual result:
[key: string]:

Details

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/api-extractor version? [key: string]: {};
Operating system? Linux
API Extractor scenario? rollup
Would you consider contributing a PR? No
TypeScript compiler version? 5.3.2
Node.js version (node -v)? 20.5.1