You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is common to use .d.ts files to extend some shared TypeScript interface like Window. For example, extending matchers in Vitest requires creating a vitest.d.ts as follows:
It is common to use
.d.ts
files to extend some shared TypeScript interface likeWindow
. For example, extending matchers in Vitest requires creating avitest.d.ts
as follows:It isn't possible to achieve this with
type
s instead ofinterface
s, and the empty object is also valid in such cases.Acceptance criteria
@typescript-eslint/consistent-type-definitions
for**/*.d.ts
files@typescript-eslint/no-empty-interface
with@typescript-eslint/no-empty-object-type
, and disable it for**/*.d.ts
filesThe text was updated successfully, but these errors were encountered: