Skip to content

Specify void this for TimerHandler callbacks - #2575

Open
Flpvoigt (Flpvoigt) wants to merge 1 commit into
microsoft:mainfrom
Flpvoigt:fix-10285-timerhandler-this
Open

Flpvoigt (Flpvoigt) wants to merge 1 commit into
microsoft:mainfrom
Flpvoigt:fix-10285-timerhandler-this

Conversation

@Flpvoigt

Copy link
Copy Markdown

Summary

  • Replace the broad Function member of TimerHandler with an explicit callback signature.
  • Declare the callback's this parameter as void.
  • Update the generated DOM and worker baselines.

This implements the library-definition portion discussed in microsoft/TypeScript#10285. Implicit this typing for unannotated methods remains tracked by microsoft/TypeScript#10288.

Tests

  • npm test

AI assistance

I used OpenAI Codex to help inspect the repositories, identify the generator source, and review the generated changes. I manually applied and reviewed the source change and ran the tests.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by Kagami Sascha Rosylight (@saschanaz) - if they write a comment saying "LGTM" then it will be merged.

@Flpvoigt

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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