ktsn/vue-router-layout

feature request: please support vue-class-component

AnWeber opened this issue · 2 comments

Please add .d.ts which extends vue-class-componet ComponentOptions to support writing code like this example.

@Component({
  layout: "testlayout",
})
export default class Test extends Vue {
ktsn commented

Well, it already has type declaration file. I suspect your typescript config might be wrong somehow.
If you are sure this is vue-router-layout issue. Please provide a reproduction (example GitHub repo etc.).

you are right. I overlooked the index.d.ts.

Thanks