Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Strict assignment - #4

Closed
k4b7 wants to merge 8 commits into
masterfrom
strict-assignment
Closed

k4b7 wants to merge 8 commits into
masterfrom
strict-assignment

Conversation

@k4b7

@k4b7 k4b7 commented Jun 20, 2019 •

Copy link
Copy Markdown
Owner

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

Comment thread libdef.d.ts
@@ -0,0 +1,15 @@
// @strict-assignment

Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant