We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18bf59 commit 84bcf7bCopy full SHA for 84bcf7b
src/TSHelper.ts
@@ -488,7 +488,7 @@ export class TSHelper {
488
return checker.getContextualType(expression) || checker.getTypeAtLocation(expression);
489
}
490
491
- public static getAllCallSignatures(type: ts.Type): readonly ts.Signature[] {
+ public static getAllCallSignatures(type: ts.Type): ReadonlyArray<ts.Signature> {
492
if (type.isUnion()) {
493
return type.types.map(t => TSHelper.getAllCallSignatures(t)).reduce((a, b) => a.concat(b));
494
test/unit/assignments/assignments.spec.ts
@@ -1,4 +1,3 @@
1
-import * as ts from "typescript";
2
import { TSTLErrors } from "../../../src/TSTLErrors";
3
import * as util from "../../util";
4
0 commit comments