mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Previously, type checking was turned off for all assignment declarations. This is a problem when the declarations are annotated with jsdoc types. This PR checks assignment declarations, *except* for expando initialisers. Expando initialisers are 1. Empty object types. 2. Function types. 3. Class types. 4. Non-empty object types when the assignment declaration kind is prototype assignment or module.exports assignment.