diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df53cb6..bafafe0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 13.x, 14.x, 16.x] + node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v1 diff --git a/package.json b/package.json index f85eb10..231f385 100644 --- a/package.json +++ b/package.json @@ -44,14 +44,14 @@ ], "license": "ISC", "devDependencies": { - "@types/node": "^17.0.35", - "@typescript-eslint/eslint-plugin": "^2.19.2", - "@typescript-eslint/parser": "^2.19.2", + "@types/node": "^16.11.1", + "@typescript-eslint/eslint-plugin": "^5.25.0", + "@typescript-eslint/parser": "^5.25.0", "markdownlint-cli": "^0.29.0", "nyc": "^15.0.0", "pre-commit": "^1.2.2", "snazzy": "^9.0.0", - "standard": "^16.0.0", + "standard": "^17.0.0", "tape": "^5.0.1", "tsd": "^0.20.0", "typescript": "^4.0.2" diff --git a/types/mqemitter.d.ts b/types/mqemitter.d.ts index 0d04068..62f7cdd 100644 --- a/types/mqemitter.d.ts +++ b/types/mqemitter.d.ts @@ -1,9 +1,5 @@ /// -declare function MQEmitter(options?: MQEmitterOptions): MQEmitter - -export default MQEmitter - interface MQEmitterOptions { concurrency?: number matchEmptyLevels?: boolean @@ -22,3 +18,5 @@ export interface MQEmitter { removeListener(topic: string, listener: (message: Message, done: () => void) => void, callback?: () => void): void close(callback: () => void): void } + +export default function (options?: MQEmitterOptions): MQEmitter