Skip to content
Snippets Groups Projects

Replace assignmets to the window object with assingments to globalThis

Merged ezsh requested to merge ezsh/fc-pregmod:d-ts into pregmod-master

VSCode and typescript still do not understand assignments to window as introducing of a global name. To make them happy, use assignment to globalThis.

I was waiting for so long, but seems like typescript will struggle with this kind of setup forever, especially when the world moves on to globalThis. So, here is a result of a routine replacement of window. with globalThis.. Now VSCode recognises all our global functions and it improves editing comfort.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading