Skip to content

Commit 9789666

Browse files
changed attribute option to use Stats keys
1 parent 029702a commit 9789666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ declare function directoryTree(
33
options?: {
44
normalizePath?: boolean;
55
exclude?: RegExp | RegExp[];
6-
attributes?: string[];
6+
attributes?: (keyof directoryTree.Stats)[];
77
extensions?: RegExp;
88
},
99
onEachFile?: (item: directoryTree.DirectoryTree, path: string, stats: directoryTree.Stats) => void,

0 commit comments

Comments
 (0)