Skip to content

Commit

Permalink
add running to typescript definition (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Jun 25, 2023
1 parent 5bee517 commit be3943a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Expand Up @@ -56,10 +56,6 @@ jobs:
types:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: 16.x

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -68,7 +64,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 16

- name: Install
run: |
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Expand Up @@ -12,6 +12,7 @@ declare namespace fastq {
unshift(task: T, done?: done<R>): void
pause(): any
resume(): any
running(): number
idle(): boolean
length(): number
getQueue(): T[]
Expand Down
2 changes: 2 additions & 0 deletions test/example.ts
Expand Up @@ -32,6 +32,8 @@ queue.pause()

queue.resume()

queue.running()

queue.saturated = () => undefined

queue.unshift('world', (err, result) => {
Expand Down

0 comments on commit be3943a

Please sign in to comment.