[api-extractor] `{}` gets cleared at the end of a line
wmertens opened this issue · 1 comments
wmertens commented
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 |
wmertens commented
Nevermind, it was a workaround in the project code (https://github.com/BuilderIO/qwik/blob/7868054c95895eb22b02e64c615202f8ce7c77a9/scripts/api.ts#L323)