mirror of
https://github.com/immich-app/walkrs.git
synced 2026-09-30 21:37:47 +08:00
feat: handle errors (#47)
This commit is contained in:
Vendored
+14
-1
@@ -1,3 +1,16 @@
|
||||
export { WalkOptions } from '../dist/index.js';
|
||||
|
||||
export function walk(options: WalkOptions): AsyncGenerator<string[], void, unknown>;
|
||||
export type WalkEntry = {
|
||||
type: 'entry';
|
||||
path: string;
|
||||
};
|
||||
|
||||
export type WalkError = {
|
||||
type: 'error';
|
||||
path?: string;
|
||||
message: string;
|
||||
};
|
||||
|
||||
export type WalkItem = WalkEntry | WalkError;
|
||||
|
||||
export function walk(options: WalkOptions): AsyncGenerator<WalkItem[], void, unknown>;
|
||||
|
||||
Reference in New Issue
Block a user