Skip to content

Commit 9d3d1f8

Browse files
committed
hasPath use same Path type as other "path" functions use
1 parent b6a861d commit 9d3d1f8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

types/hasPath.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
export function hasPath(list: readonly string[]): <T>(obj: T) => boolean;
2-
export function hasPath<T>(list: readonly string[], obj: T): boolean;
1+
import { Path } from './util/tools';
2+
3+
export function hasPath(list: Path): <T>(obj: T) => boolean;
4+
export function hasPath<T>(list: Path, obj: T): boolean;

0 commit comments

Comments
 (0)