ktquez / vue-head

Manager the meta information of the head tag, a simple and easy way
MIT License
984 stars 73 forks source link

No Typescript support #83

Closed zvaehn closed 4 years ago

zvaehn commented 4 years ago
24:3 Argument of type '{ store: Store<any>; props: {}; head: { title: { inner: string; }; }; beforeCreate(this: Vue): Promise<void>; mounted(): void; }' is not assignable to parameter of type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>'.
  Object literal may only specify known properties, and 'head' does not exist in type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>'.
    22 |
    23 |   },
  > 24 |   head: {
       |   ^
    25 |     title: {
    26 |       inner: 'It will be a pleasure',
    27 |     },

Is it possible to add? kr.

ktquez commented 4 years ago

@zvaehn Did you manage to solve?

You can take a look at this issue: https://github.com/ktquez/vue-head/issues/71

ktquez commented 4 years ago

I closed the issue, but if you still have questions, just open again, ok?