Skip to content

Commit

Permalink
fix: support TypeScript v3 (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
blimmer authored Jul 6, 2021
1 parent 96c0c2d commit b028364
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,15 @@ export interface RenderOptions<V extends Vue, S = {}>
baseElement?: Element
}

type ConfigurationArgs = [
localVue: typeof Vue,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
store: Store<any>,
router: Router,
]

export type ConfigurationCallback<V extends Vue> =
| ((...args: ConfigurationArgs) => Partial<ThisTypedMountOptions<V>>)
| ((...args: ConfigurationArgs) => void)
| ((
localVue: typeof Vue,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
store: Store<any>,
router: Router,
) => Partial<ThisTypedMountOptions<V>>)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
| ((localVue: typeof Vue, store: Store<any>, router: Router) => void)

export function render<V extends Vue>(
TestComponent: VueClass<V> | ComponentOptions<V>,
Expand Down

0 comments on commit b028364

Please sign in to comment.