Skip to content

Commit

Permalink
Merge pull request #217 from abustamam/patch-1
Browse files Browse the repository at this point in the history
add filter/find type definitions
  • Loading branch information
qgustavor authored Sep 19, 2024
2 parents ab149d1 + 5ae48f9 commit 7b1ca48
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 7b1ca48

Please sign in to comment.