mcollina / fastq

Fast, in memory work queue
ISC License
944 stars 47 forks source link

fix(typescript): adjust push and unshift methods to not require callback #35

Closed pieh closed 3 years ago

pieh commented 3 years ago

TS typings don't reflect that done param is optional for .push() and .unshift() methods.

Behaviour is already tested in https://github.com/mcollina/fastq/blob/9b929c0ac40fe6b1ea0d2c4560dddf0d4be4851e/test/test.js#L524-L548

Just TS types force to define it (even if it's no-op)