File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 11import { Stats } from "fs" ;
22
3- interface IObj {
4- [ key : string ] : any ;
5- }
6-
73declare function directoryTree <
8- TCustomFile extends IObj = IObj ,
9- TCustomDir extends IObj = IObj ,
10- TCustomResult extends IObj = TCustomFile & TCustomDir
4+ TCustomFile extends Record < string , any > = Record < string , any > ,
5+ TCustomDir extends Record < string , any > = Record < string , any > ,
6+ TCustomResult extends Record < string , any > = TCustomFile & TCustomDir
117> (
128 path : string ,
139 options ?: directoryTree . DirectoryTreeOptions ,
@@ -18,7 +14,7 @@ declare function directoryTree<
1814export as namespace directoryTree ;
1915
2016declare namespace directoryTree {
21- export interface DirectoryTree < C extends IObj = IObj > {
17+ export interface DirectoryTree < C extends Record < string , any > = Record < string , any > > {
2218 path : string ;
2319 name : string ;
2420 size : number ;
You can’t perform that action at this time.
0 commit comments