From b02836439de35ae7bdc7d46c1c2783a41837bef5 Mon Sep 17 00:00:00 2001 From: Ben Limmer Date: Tue, 6 Jul 2021 09:25:21 -0600 Subject: [PATCH] fix: support TypeScript v3 (#241) --- types/index.d.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 8d612ab..e8dd853 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -46,16 +46,15 @@ export interface RenderOptions baseElement?: Element } -type ConfigurationArgs = [ - localVue: typeof Vue, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - store: Store, - router: Router, -] - export type ConfigurationCallback = - | ((...args: ConfigurationArgs) => Partial>) - | ((...args: ConfigurationArgs) => void) + | (( + localVue: typeof Vue, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + store: Store, + router: Router, + ) => Partial>) + // eslint-disable-next-line @typescript-eslint/no-explicit-any + | ((localVue: typeof Vue, store: Store, router: Router) => void) export function render( TestComponent: VueClass | ComponentOptions,