Have typescript/consistent-type-definitions allow use of interface within declare global block #16539
difosfor
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I prefer to use type consistently, but I also use Lit to create custom elements and so I need merge my types into the related global interfaces, p.e:
I'm looking at switching from Biome to Oxlint but it seems like unfortunately this also will replace those uses of interface by type if I specify that type is my general preference.
I think within a declare global block only the use of interfaces makes sense? So this rule should arguably default to ignoring those uses of interface there. But I understand you would like backwards and ESLint compatibility , so I'd be happy if you just added an option to this rule to this effect.
I hope somebody can find some time to add support for this. In the mean time I guess I'll just disable this rule in general or just where needed 🤔
Beta Was this translation helpful? Give feedback.
All reactions