Skip to content

Commit

Permalink
Merge pull request #119 from Giacom/patch-1
Browse files Browse the repository at this point in the history
Fixes type error when using strict mode in TS: Type 'TCustomResult' does not satisfy the constraint 'IObj'
  • Loading branch information
mihneadb committed Nov 18, 2022
2 parents 376ef98 + 49b85a2 commit dac5db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -7,7 +7,7 @@ interface IObj {
declare function directoryTree<
TCustomFile extends IObj = IObj,
TCustomDir extends IObj = IObj,
TCustomResult = TCustomFile & TCustomDir
TCustomResult extends IObj = TCustomFile & TCustomDir
>(
path: string,
options?: directoryTree.DirectoryTreeOptions,
Expand Down

0 comments on commit dac5db8

Please sign in to comment.