Typescript warning "Use an interface instead of a type literal" Typescript warning "Use an interface instead of a type literal" typescript typescript

Typescript warning "Use an interface instead of a type literal"


To whom that might care, it should be

export interface InternalStateType {

without the equal sign.

Here are the docs.


Yup, that's the case.

There's no reason to make InternalStateType a class here over an interface, since it has no behaviour of it's own - it's just a DTO-type thing.