Closed
Description
Subject of the issue
Describe your issue here.
according to this PR, I should be alow create local vue like this.
#1670
const localVue = createLocalVue({
errorHandler
})
But the type file do not allow to add a options parameter.
Steps to reproduce
ues typescript and type this in your spec file.
const errorHandler = (err, vm, info) => {
expect(err).toBeInstanceOf(Error);
};
localVue = createLocalVue({ errorHandler });
Expected behaviour
It should no error happen.
Actual behaviour
A type error happen.
Possible Solution
change the type to this below.
export declare function createLocalVue (options?: any): typeof Vue
Metadata
Metadata
Assignees
Labels
No labels