This commit is contained in:
tatianamac
2019-11-26 14:50:43 -08:00
parent 8a55660ed0
commit 6d5445ecc5
13894 changed files with 2233957 additions and 0 deletions

24
node_modules/fastq/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,24 @@
declare function fastq<T>(context: T, worker: fastq.worker<T>, concurrency: number): fastq.queue
declare function fastq<T>(worker: fastq.worker<T>, concurrency: number): fastq.queue
declare namespace fastq {
type worker<T> = (this: T, arg: any, cb: () => void) => void
type done = (err: Error, result: any) => void
interface queue {
push(task: any, done: done): void
unshift(task: any, done: done): void
pause(): any
resume(): any
idle(): boolean
length(): number
kill(): any
killAndDrain(): any
concurrency: number
drain(): any
empty: () => void
saturated: () => void
}
}
export = fastq