microsoft / microsoft/TypeScript

Move `AbortController`/`AbortSignal` to isolated lib file to share definitions between DOM and NodeJS

Open
#43,692 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Domain: lib.d.ts
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.