sveltejs / sveltejs/kit

Add `DOM.AsyncIterable` to generated TS config's `lib`?

Open Beginner friendly
#13,768 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

types / typescript
Dominant language
JavaScript
Stars
20.8k
Forks
2.3k
Avg merge
1d 16h
Merged PRs (30d)
156

Description

Describe the problem

Some DOM APIs use this and not having it defined leads to type errors.
For reference see e.g. this issue:

Type checking issues like this could be preempted by adding the library alongside DOM.Iterable.

Describe the proposed solution

Change the generated TS config's lib default to include DOM.AsyncIterable.

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

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 generated TypeScript configuration and the default lib setting, then compare it with the existing DOM.Iterable entry. Update the default to include DOM.AsyncIterable and verify that the generated configuration contains both libraries and prevents the referenced DOM API type errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.