@bscotch/pathy
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -175,3 +175,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
listChildrenRecursively<As = Pathy>(options?: PathyListChildrenOptions<As>): Promise<As[]>; | ||
findInParents(basename: string, options?: PathyFindParentOptions): Promise<Pathy | undefined>; | ||
findInParents<T = unknown>(basename: string, options?: PathyFindParentOptions<T>): Promise<Pathy<T> | undefined>; | ||
findInParentsSync(basename: string, options?: PathyFindParentOptions): Pathy | undefined; | ||
@@ -178,0 +178,0 @@ /** |
@@ -98,3 +98,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
*/ | ||
export interface PathyFindParentOptions { | ||
export interface PathyFindParentOptions<T = unknown> { | ||
/** | ||
@@ -111,3 +111,3 @@ * A function that, if it returns truthy, has identified | ||
*/ | ||
test?: (path: Pathy) => any; | ||
test?: (path: Pathy<T>) => any; | ||
} | ||
@@ -114,0 +114,0 @@ export interface PathyListChildrenOptions<As = Pathy> { |
{ | ||
"name": "@bscotch/pathy", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"type": "module", | ||
@@ -13,9 +13,4 @@ "exports": { | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "tsc --build", | ||
"test": "treb test", | ||
"watch": "tsc --build --watch" | ||
}, | ||
"dependencies": { | ||
"@bscotch/utility": "^6.1.1", | ||
"@bscotch/utility": "^6.1.2", | ||
"chai": "^4.3.6", | ||
@@ -28,2 +23,3 @@ "fs-extra": "^10.1.0", | ||
"devDependencies": { | ||
"@types/fs-extra": "^9.0.13", | ||
"type-fest": "^2.16.0", | ||
@@ -34,3 +30,8 @@ "typescript": "^4.8.0-beta" | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "tsc --build", | ||
"test": "treb test", | ||
"watch": "tsc --build --watch" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
91371
3
Updated@bscotch/utility@^6.1.2