`SourceNode.children` type incorrect
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.7k
- Forks
- 370
- PR merge metrics
- No merged PRs in 30d
Description
According to
SourceNode.children should have a type (SourceNode | string)[], but source-map.d.ts lists the type as SourceNode[]
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 with the referenced children handling in lib/source-node.js around line 195, then inspect the corresponding declaration in source-map.d.ts. Update the declaration so children accepts SourceNode or string values, and confirm the published type matches the implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100