Skip to content

Commit

Permalink
fix: enqueue arg type error (#36)
Browse files Browse the repository at this point in the history
- enqueue's arg should be same as queue arg
  • Loading branch information
moonRider authored Nov 6, 2024
1 parent 4a4c52d commit b72d376
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
"name": "@byzanteam/jet-queue-plugin-js",
"version": "0.3.0",
"version": "0.3.1",
"exports": {
".": "./mod.ts",
"./testing": "./src/testing.ts"
Expand All @@ -18,7 +18,7 @@
".git"
],
"tasks": {
"test": "deno test -A --allow-none --shuffle --parallel",
"test": "deno test -A --permit-no-files --shuffle --parallel",
"lockfile:update": "deno cache --reload --lock=deno.lock --lock-write deps.ts dev_deps.ts && deno task check && deno task test",
"check:types": "deno check **/*.ts",
"check": "deno fmt --check && deno lint && deno task check:types && deno task test"
Expand Down
9 changes: 3 additions & 6 deletions src/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,9 @@ export class Queue<
* });
* ```
*/
async enqueue<
A extends Record<string, unknown>,
M extends Record<string, unknown> | undefined,
>(
args: Readonly<A>,
options?: Partial<EnqueueOptions<keyof A & string, M>>,
async enqueue<M extends Record<string, unknown> | undefined>(
args: Readonly<T>,
options?: Partial<EnqueueOptions<keyof T & string, M>>,
): Promise<EnqueueJobResponse> {
let normalizedOptions: object;

Expand Down

0 comments on commit b72d376

Please sign in to comment.