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
Please see comments:
interface ObjectHash { [key: string]: any; } var hash: ObjectHash; hash = { "key": "value" } declare class Model { defaults: ObjectHash; } class MyModel1 extends Model { // Okay defaults = hash; } class MyModel2 extends Model { // Why ERROR?! defaults = { "key": "value" }; } class MyModel3 extends Model { // Okay defaults: ObjectHash = { "key": "value" }; }
The text was updated successfully, but these errors were encountered:
I think what you're looking for is issue #1373. Essentially we're not contextually typing with base-class properties.
Sorry, something went wrong.
I think it's also a duplicate of #178. It caught me again!
No branches or pull requests
Please see comments:
The text was updated successfully, but these errors were encountered: