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
TypeScript Version: 3.7.x-dev.201xxxxx
Search Terms:
Code
export interface IA { ({ a: string // <=== bad syntax }): any }
Expected behavior:
show error message
Actual behavior:
nope
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered:
I see an error on string:
string
Binding element 'string' implicitly has an 'any' type.
Solving it to (playground):
export interface IA { ({ a }: { a: string}): any } let a: IA = () => {}; a({ a: 0 })
or (playground)
export interface IA { (obj: { a: string}): any } let a: IA = () => {}; a({ a: 0 })
I see an error on a: 0:
a: 0
Type 'number' is not assignable to type 'string'.(2322) The expected type comes from property 'a' which is declared here on type '{ a: string; }'
Sorry, something went wrong.
im not mean about noImplicitAny is enable or not
noImplicitAny
Successfully merging a pull request may close this issue.
TypeScript Version: 3.7.x-dev.201xxxxx
Search Terms:
Code
Expected behavior:
show error message
Actual behavior:
nope
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: