We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// @module: commonjs // @Filename: foo_0.ts class Foo<T extends {a: string; b:number;}>{ test: T; constructor(x: T){} } export = Foo; // @Filename: foo_1.ts import foo = require("./foo_0"); var x = new foo(true); // Should error var y = new foo({a: "test", b: 42}); // Should be OK var z: number = y.test.b;
Expected:
!!! Supplied parameters do not match any signature of call target:
!!! Type 'Boolean' is missing property 'a' from type '{ a: string; b: number; }'.
Actual:
!!! Supplied parameters do not match any signature of call target.
The text was updated successfully, but these errors were encountered:
Sufficiently stripped down:
function foo(x: { a: string }): number { return undefined; } foo(true);
Reports:
Supplied parameters do not match any signature of call target.
Sorry, something went wrong.
Better error messages in function calls.
a515b19
Fixes #93. This is an evolution of #220.
DanielRosenwasser
Successfully merging a pull request may close this issue.
Expected:
!!! Supplied parameters do not match any signature of call target:
!!! Type 'Boolean' is missing property 'a' from type '{ a: string; b: number; }'.
Actual:
!!! Supplied parameters do not match any signature of call target.
The text was updated successfully, but these errors were encountered: