Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b028364

Browse files
authored
fix: support TypeScript v3 (#241)
1 parent 96c0c2d commit b028364

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

‎types/index.d.ts‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,15 @@ export interface RenderOptions<V extends Vue, S = {}>
4646
baseElement?: Element
4747
}
4848

49-
type ConfigurationArgs = [
50-
localVue: typeof Vue,
51-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
52-
store: Store<any>,
53-
router: Router,
54-
]
55-
5649
export type ConfigurationCallback<V extends Vue> =
57-
| ((...args: ConfigurationArgs) => Partial<ThisTypedMountOptions<V>>)
58-
| ((...args: ConfigurationArgs) => void)
50+
| ((
51+
localVue: typeof Vue,
52+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
53+
store: Store<any>,
54+
router: Router,
55+
) => Partial<ThisTypedMountOptions<V>>)
56+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
57+
| ((localVue: typeof Vue, store: Store<any>, router: Router) => void)
5958

6059
export function render<V extends Vue>(
6160
TestComponent: VueClass<V> | ComponentOptions<V>,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /