TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

[Web API type definition issue] Missed `SchedulerPostTaskCallback` payload type parameter

Open turansky opened this issue 7 months ago • 0 comments

Summary

SchedulerPostTaskCallback should have payload type parameter

Expected vs. Actual Behavior

Payload should be used in Scheduler.postTask.

Expected:

type SchedulerPostTaskCallback<T> = () => T

Actual:

type SchedulerPostTaskCallback = () => any

Playground Link

No response

Browser Support

  • [x] This API is supported in at least two major browser engines (not two Chromium-based browsers).

Have Tried The Latest Releases

  • [x] This issue applies to the latest release of TypeScript.
  • [x] This issue applies to the latest release of @types/web.

Additional Context

No response

turansky avatar Jul 27 '25 12:07 turansky