Property '...' does not exist on type '{ func(): void; }
Vue version
vue 3
Link to minimal reproduction
https://github.com/konsbe/vue-js/blob/main/src/views/Dashboard/index.ts
Steps to reproduce
am trying just to use the connections in sort method and i get an undreline warning the function is warking but am still getting the ts warning
the exacly warning am getting on vs code is
Property 'connections' does not exist on type '{ sortBy(prop: any): void; }'.ts(2339)
What is expected?
not show warning
What is actually happening?
it shows warning
System Info
No response
Any additional comments?
No response
You need to use defineComponent()
to get TS support. See https://vuejs.org/guide/typescript/options-api.html.