diff --git a/types/hasPath.d.ts b/types/hasPath.d.ts index 25f9bd2..55c7aad 100644 --- a/types/hasPath.d.ts +++ b/types/hasPath.d.ts @@ -1,2 +1,4 @@ -export function hasPath(list: readonly string[]): (obj: T) => boolean; -export function hasPath(list: readonly string[], obj: T): boolean; +import { Path } from './util/tools'; + +export function hasPath(list: Path): (obj: T) => boolean; +export function hasPath(list: Path, obj: T): boolean;