|
1 | | -import * as Vue from 'vue' |
| 1 | +import Vue, { ComponentOptions } from 'vue' |
2 | 2 | import { $decoratorQueue } from './component' |
3 | 3 |
|
4 | 4 | export const noop = () => {} |
5 | 5 |
|
6 | 6 | export function createDecorator ( |
7 | | - factory: (options: Vue.ComponentOptions<Vue>, key: string) => void |
| 7 | + factory: (options: ComponentOptions<Vue>, key: string) => void |
8 | 8 | ): (target: Vue, key: string) => void |
9 | 9 | export function createDecorator ( |
10 | | - factory: (options: Vue.ComponentOptions<Vue>, key: string, index: number) => void |
| 10 | + factory: (options: ComponentOptions<Vue>, key: string, index: number) => void |
11 | 11 | ): (target: Vue, key: string, index: number) => void |
12 | 12 | export function createDecorator ( |
13 | | - factory: (options: Vue.ComponentOptions<Vue>, key: string, index: number) => void |
| 13 | + factory: (options: ComponentOptions<Vue>, key: string, index: number) => void |
14 | 14 | ): (target: Vue, key: string, index: any) => void { |
15 | 15 | return (_, key, index) => { |
16 | 16 | if (typeof index !== 'number') { |
|
0 commit comments