prefer-type-alias
WarningDeclare object types with type. interface is allowed only inside declare module and declare global.
interface User { id: string;}export interface ButtonProps extends HTMLProps { variant: "primary" | "secondary";}type User = { id: string;};declare module "uniwind" { export interface UniwindConfig { themes: readonly ["light", "dark"]; }}declare global { interface Window { analytics: Analytics; }}How to fix
Write type $NAME = { ... }. Interfaces are allowed only inside declare module and declare global, where declaration merging needs them to augment existing types.