Closed patric-eberle closed 10 months ago
TS Interfaces should manly only be used by libraries. But we used them for non primitive JS values by default. In general they can be replaced by a type, which will perform the same test.
type
e.g.
interface Foo { value: boolean; } // becomes type Foo = { value: boolean; }
TS Interfaces should manly only be used by libraries. But we used them for non primitive JS values by default. In general they can be replaced by a
type
, which will perform the same test.e.g.