You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// In TSfunctionx(): 42{return/*extract to inner function*/42;}// In JS// @ts-check/** * @returns {42} */functionx(){return/*extract to inner function*/42;}
Expected behavior:
Under ts-check, a refactoring should apply appropriate jsdocs to allow js to typecheck after a refactoring if it typechecked before it.
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered:
Anywhere a contextual type is required for the expression to be given the correct type. Although this also applied to anything that makes a new declaration without an initializer, like some forms in the async refactor PR.
TypeScript Version: 3.1.0-dev.201xxxxx
Search Terms:
Code
Expected behavior:
Under
ts-check
, a refactoring should apply appropriate jsdocs to allow js to typecheck after a refactoring if it typechecked before it.Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: