Replies: 1 comment
-
You can argument declare module "vue" {
interface GlobalDirectives {
vFoo: import("vue").ObjectDirective<...>;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
#5141
^ above feature has started to flag my custom directive 'v-c2' as an error
Property 'vC2' does not exist on type '{ $: ComponentInternalInstance; $data: {}; $props: Partial<{ confirmationText: string; confirmText: string; cancelText: string; positionSelector: string; contentClass: "alert" | ... 1 more ... | "default"; ... 4 more ...; maxConfirmationStringLength: number; }> & Omit<...>; ... 11 more ...; $watch<T extends string |...'.ts-plugin(2339)
I am wondering if this is an issue with how I am creating and registering my custom directive? Is there a guide on how to register these directives with typescript?
I have disabled this 'checkUnknownDirectives' for now until I can figure it out.
Beta Was this translation helpful? Give feedback.
All reactions