diff --git a/types/index.d.ts b/types/index.d.ts index 122afd9..28bc438 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -41,11 +41,11 @@ type Routes = any // eslint-disable-next-line @typescript-eslint/no-explicit-any type Router = any -export interface RenderOptions +export interface RenderOptions // The props and store options special-cased by Vue Testing Library and NOT passed to mount(). extends Omit, 'store' | 'props'> { props?: object - store?: Store + store?: S routes?: Routes container?: Element baseElement?: Element @@ -61,9 +61,11 @@ export type ConfigurationCallback = // eslint-disable-next-line @typescript-eslint/no-explicit-any | ((localVue: typeof Vue, store: Store, router: Router) => void) -export function render( +export function render( TestComponent: VueClass | ComponentOptions, - options?: RenderOptions, + // eslint-disable-next-line @typescript-eslint/ban-tslint-comment + // tslint:disable-next-line no-unnecessary-generics + options?: RenderOptions, configure?: ConfigurationCallback, ): RenderResult