mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
fs-extra: Make WalkEventEmitter extend ReadableStream (#13803)
This commit is contained in:
Vendored
+4
-4
@@ -74,10 +74,10 @@ export declare function ensureSymlinkSync(path: string): void;
|
||||
export declare function emptyDir(path: string, callback?: (err: Error) => void): void;
|
||||
export declare function emptyDirSync(path: string): boolean;
|
||||
|
||||
export interface WalkEventEmitter {
|
||||
on(event: 'data', callback: (file: WalkEventFile) => void): WalkEventEmitter;
|
||||
on(event: 'end', callback: () => void): WalkEventEmitter;
|
||||
on(event: string, callback: Function): WalkEventEmitter;
|
||||
export interface WalkEventEmitter extends NodeJS.ReadableStream {
|
||||
on(event: 'data', callback: (file: WalkEventFile) => void): this;
|
||||
on(event: 'end', callback: () => void): this;
|
||||
on(event: string | symbol, callback: Function): this;
|
||||
}
|
||||
|
||||
export interface WalkEventFile {
|
||||
|
||||
Reference in New Issue
Block a user