fs: `walkSync` returns a type without iterator helpers
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- deno, typescript
- Domain
- tooling
Research direction
Start at the walkSync declaration and its generator implementation, then run the TypeScript reproduction from the issue. Confirm that the public return type exposes the iterator helper methods available at runtime, and verify that the example using map type-checks successfully.
Written by the indexing model from the issue text.
Description
Describe the bug
walkSync returns IterableIterator<WalkEntry>, which doesn't implement iterator helper methods. However it's implemented as a generator function so it has them at the runtime.
Steps to Reproduce
const a = walkSync(".");
const b = a.map(v => v.name); // Property 'map' does not exist on type 'IterableIterator<WalkEntry>'.
Environment
- OS: Windows 10
- deno version: deno 2.7.11
- std version: 1.0.23
- Dominant language
- TypeScript
- Stars
- 3.6k
- Forks
- 685
- Avg merge
- 10d 11m
- Merged PRs (30d)
- 9
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.
More from denoland/std
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
bug needs triage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100