Skip to content

Commit 6602dc8

Browse files
committed
fix(types): vue 3 directive type compatibility
1 parent 60d268c commit 6602dc8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

types/vue.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
ExtractComputedReturns,
2323
ComponentOptionsMixin
2424
} from './v3-component-options'
25+
import { Directive } from './v3-directive'
2526

2627
export interface CreateElement {
2728
(
@@ -338,6 +339,10 @@ export interface VueConstructor<V extends Vue = Vue> {
338339
id: string,
339340
definition?: DirectiveOptions | DirectiveFunction
340341
): DirectiveOptions
342+
directive(
343+
id: string,
344+
definition?: Directive
345+
): Directive
341346
filter(id: string, definition?: Function): Function
342347

343348
component(id: string): VueConstructor

0 commit comments

Comments
 (0)