Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: types compatible with nuxt-property-decorator (#72)
No more type errors for forced color mode on nuxt-property-decorator ``` import { Component } from 'nuxt-property-decorator' import Vue from 'vue' @component({ colorMode: 'light', ... }) export default class LightModeForcedPage extends Vue { ... } ``` Given error before this fix: ``` Overload 1 of 2, '(options: ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>> & ThisType<...>): <VC extends VueClass<...>>(target: VC) => VC', gave the following error. Argument of type '{ colorMode: string; layout: string; components: { ValidationObserver: ExtendedVue<Vue & { $_veeObserver: VeeObserver; $vnode: VNodeWithVeeContext; }, { ...; }, { ...; }, unknown, { ...; }>; ValidationProvider: ExtendedVue<...>; DatePicker: any; }; }' is not assignable to parameter of type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>> & ThisType<...>'. Object literal may only specify known properties, and 'colorMode' does not exist in type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>> & ThisType<...>'. ```
- Loading branch information