Skip to content

Commit

Permalink
add filter/find type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
abustamam authored Sep 19, 2024
1 parent ab149d1 commit 5ae48f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/es.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export declare class File extends EventEmitter {
download (options: downloadOpts, cb?: (error: err, data?: Buffer) => void): Readable
downloadBuffer (options: downloadOpts, cb?: (error: err, data?: Buffer) => void): Promise<Buffer>
link (options: linkOpts | boolean, cb?: (error: err, url?: string) => void): Promise<string>
filter (query: string | string[] | ((file: MutableFile) => boolean), deep?: boolean): MutableFile[]
find (query: string | string[] | ((file: MutableFile) => boolean), deep?: boolean): MutableFile | null
}

declare class MutableFile extends File {
Expand Down

0 comments on commit 5ae48f9

Please sign in to comment.