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
type check
As https://gist.github.com/RyanCavanaugh/f80f9ddc50d45c4d76e7c4101efada28 said.
To turn off allowing expr.prop when expr just has a string index signature.
expr.prop
But does it's better if only issue errors when property access referenced to signature?
interface A { foo: string } interface B { [k: string]: string } interface C { foo: string [k: string]: string } declare const a: A; declare const b: B; declare const c: C; declare const d: C | undefined; a.foo; a["foo"] b.foo; // error b["foo"]; c.foo; c["foo"] c.bar; // error c["bar"]; d?.foo; d?.["foo"] d?.bar; // error d?.["bar"];
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Search Terms
type check
Suggestion
As https://gist.github.com/RyanCavanaugh/f80f9ddc50d45c4d76e7c4101efada28 said.
But does it's better if only issue errors when property access referenced to signature?
Examples
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: