mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-11 21:31:39 +00:00
update
This commit is contained in:
24
node_modules/fastq/index.d.ts
generated
vendored
Normal file
24
node_modules/fastq/index.d.ts
generated
vendored
Normal 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
|
Reference in New Issue
Block a user