Improving strict typescript checking

This commit is contained in:
Fabian Stamm
2022-02-14 00:58:05 +00:00
parent 3ececad91b
commit 58e00a9ca3
4 changed files with 8 additions and 2 deletions

View File

@ -383,6 +383,7 @@ export class TypescriptTarget extends CompileTarget {
a(2, ``);
a(2, `p.push(ctx);`);
a(2, `//@ts-ignore This will cause a typescript error when strict checking, since p is not a tuple`)
a(
2,
`return this.${fnc.name}.call(this, ...p)` + //TODO: Refactor. This line is way to compicated for anyone to understand, including me