1 | import Vue, { ComponentOptions } from 'vue';
|
2 | import { VueClass } from './declarations';
|
3 | export declare const noop: () => void;
|
4 | export declare const hasProto: boolean;
|
5 | export interface VueDecorator {
|
6 | (Ctor: typeof Vue): void;
|
7 | (target: Vue, key: string): void;
|
8 | (target: Vue, key: string, index: number): void;
|
9 | }
|
10 | export declare function createDecorator(factory: (options: ComponentOptions<Vue>, key: string, index: number) => void): VueDecorator;
|
11 | export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
12 | export declare type ExtractInstance<T> = T extends VueClass<infer V> ? V : never;
|
13 | export declare type MixedVueClass<Mixins extends VueClass<Vue>[]> = Mixins extends (infer T)[] ? VueClass<UnionToIntersection<ExtractInstance<T>>> : never;
|
14 | export declare function mixins<A>(CtorA: VueClass<A>): VueClass<A>;
|
15 | export declare function mixins<A, B>(CtorA: VueClass<A>, CtorB: VueClass<B>): VueClass<A & B>;
|
16 | export declare function mixins<A, B, C>(CtorA: VueClass<A>, CtorB: VueClass<B>, CtorC: VueClass<C>): VueClass<A & B & C>;
|
17 | export declare function mixins<A, B, C, D>(CtorA: VueClass<A>, CtorB: VueClass<B>, CtorC: VueClass<C>, CtorD: VueClass<D>): VueClass<A & B & C & D>;
|
18 | export declare function mixins<A, B, C, D, E>(CtorA: VueClass<A>, CtorB: VueClass<B>, CtorC: VueClass<C>, CtorD: VueClass<D>, CtorE: VueClass<E>): VueClass<A & B & C & D & E>;
|
19 | export declare function mixins<T>(...Ctors: VueClass<Vue>[]): VueClass<T>;
|
20 | export declare function mixins<T extends VueClass<Vue>[]>(...Ctors: T): MixedVueClass<T>;
|
21 | export declare function isPrimitive(value: any): boolean;
|
22 | export declare function warn(message: string): void;
|