microsoft / microsoft/TypeScript
Move `AbortController`/`AbortSignal` to isolated lib file to share definitions between DOM and NodeJS
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
NodeJS introduced a global AbortController/AbortSignal in Node 15.x. It would be helpful if NodeJS could share the definitions from the DOM using /// <reference lib="abortcontroller" /> comment.
This was mentioned in https://github.com/DefinitelyTyped/DefinitelyTyped/pull/52357/files#diff-2696281f8832b1227bb41483a7525a8ccd9399bb4b1704f69c8c54bb1346d8edR315
Related: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/52357
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the DOM declarations for AbortController and AbortSignal and the NodeJS library definitions that need to consume them. Check how isolated lib files and triple-slash lib references are configured, then verify that both DOM and NodeJS expose the shared definitions without duplication.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- compilers
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100