Closed pulsejet closed 12 months ago
Can you make an ESLint plugin to enforce this requirement? This ensures new violations do not get introduced.
Good thought. I've no experience with this but will give it a shot later.
I found the api-extractor issue here: https://github.com/microsoft/rushstack/issues/2780 I don't see a technical reason that this syntax cannot be supported by api-extractor. Thus, the recommended solution is implementing it in api-extractor.
This is valid TypeScript syntax. Thus, I will not remove it from the source code itself, and will not adopt ESLint rule that removes such.
If you are using the .d.ts
from packages, I could accept a PR that modifies the generated code via mk/build-post.mjs
.
This isn't ideal but
@microsoft/api-extractor
doesn't support this syntax for whatever reason. This blocks creation of user types in NDN Play so it either needs to be patched or not run in CI.I understand if you don't want this change; feel free to close in that case.