If you know how to fix the issue, make a pull request instead.
If you do not mention the authors the issue will be ignored.
Consider the following cases.
interface Test {
hello?: Function
}
const test: Test = {
hello: () => {}
};
spyOn(test, 'hello');
will report type error, since hello can not be assigned to never.
If you know how to fix the issue, make a pull request instead.
@types/xxxxpackage and had problems.Definitions by:inindex.d.ts) so they can respond.If you do not mention the authors the issue will be ignored.
Consider the following cases.
will report type error, since
hellocan not be assigned tonever.