Skip to content

Commit c199e43

Browse files
Copilotbcomnes
andauthored
fix: update jsdoc imports and node typings for TypeScript 6
Agent-Logs-Url: https://github.com/bcomnes/async-folder-walker/sessions/6e3079d4-da24-463f-9ed8-ae46cc6f2013 Co-authored-by: bcomnes <166301+bcomnes@users.noreply.github.com>
1 parent 56b9961 commit c199e43

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22

33
/**
4-
* @typedef {import('fs').Stats} Stats
4+
* @import { Stats } from 'node:fs'
55
*/
66

77
'use strict'
@@ -105,7 +105,9 @@ async function * asyncFolderWalker (dirs, opts) {
105105
// @ts-ignore
106106
const ig = ignore().add(resolvedOpts.ignore)
107107

108+
/** @type {string[]} */
108109
const roots = [dirs].flat().filter(resolvedOpts.pathFilter)
110+
/** @type {string[]} */
109111
const pending = []
110112

111113
while (roots.length) {

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"allowJs": true,
55
"checkJs": true,
6+
"types": ["node"],
67
"noEmit": true,
78
"resolveJsonModule": true,
89
"skipLibCheck": false,

0 commit comments

Comments
 (0)