Skip to content
New issue

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

Strict assignment #4

Closed
wants to merge 8 commits into from
Closed

Strict assignment #4

wants to merge 8 commits into from

Conversation

kevinbarabash
Copy link
Owner

@kevinbarabash kevinbarabash commented Jun 20, 2019

TODO:

  • strict assignment for variable declaration/assignment
  • strict assignment for function calls
  • check that overloaded function calls work as expected
  • error and option messages
  • enable strict assignment for JSX
  • update baselines for tsc --init (tsconfig.json) tests
  • add unit tests for the new behavior
  • add a test to check deeply nested types
  • handle callback params correctly
  • allow covariance for object types with simple properties
  • disallow assignment of readonly types to the mutable equivalent

@@ -0,0 +1,15 @@
// @strict-assignment
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this line results in code in test.ts using these declarations with strict-assignment checking even if when using the --strict-assignment flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant