valantic / vue-template

A custom Vue.js boilerplate based on webpack.
MIT License
7 stars 4 forks source link

Remove TS interfaces #338

Closed patric-eberle closed 10 months ago

patric-eberle commented 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.

e.g.

interface Foo {
  value: boolean;
}

// becomes
type Foo = {
  value: boolean;
}