first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
23
node_modules/@vue/test-utils/dist/mount.d.ts
generated
vendored
Normal file
23
node_modules/@vue/test-utils/dist/mount.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { DefineComponent, VNode } from 'vue';
|
||||
import type { ComponentExposed, ComponentProps, ComponentSlots } from 'vue-component-type-helpers';
|
||||
import { MountingOptions } from './types';
|
||||
import { VueWrapper } from './vueWrapper';
|
||||
type ShimSlotReturnType<T> = T extends (...args: infer P) => any ? (...args: P) => any : never;
|
||||
type WithArray<T> = T | T[];
|
||||
type ComponentData<T> = T extends {
|
||||
data?(...args: any): infer D;
|
||||
} ? D : {};
|
||||
export type ComponentMountingOptions<T> = Omit<MountingOptions<ComponentProps<T>, ComponentData<T>>, 'slots'> & {
|
||||
slots?: {
|
||||
[K in keyof ComponentSlots<T>]: WithArray<ShimSlotReturnType<ComponentSlots<T>[K]> | string | VNode | (new () => any) | {
|
||||
template: string;
|
||||
}>;
|
||||
};
|
||||
} & Record<string, unknown>;
|
||||
export declare function mount<T, C = T extends ((...args: any) => any) | (new (...args: any) => any) ? T : T extends {
|
||||
props?: infer Props;
|
||||
} ? DefineComponent<Props extends Readonly<(infer PropNames)[]> | (infer PropNames)[] ? {
|
||||
[key in PropNames extends string ? PropNames : string]?: any;
|
||||
} : Props> : DefineComponent>(originalComponent: T, options?: ComponentMountingOptions<C>): VueWrapper<ComponentExposed<C> & ComponentProps<C> & ComponentData<C>>;
|
||||
export declare const shallowMount: typeof mount;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue