From 49b85a22b33d3e0c90e319920184a0b3d88fef2d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 16 Nov 2022 11:52:45 +0000 Subject: [PATCH] Fixes type error when using strict mode in TS Fixes the error: node_modules/directory-tree/index.d.ts:16:32 - error TS2344: Type 'TCustomResult' does not satisfy the constraint 'IObj'. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index f2cf962..5e97ff9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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,