Skip to content

Commit 5465a8e

Browse files
committed
feat(BaseQueueTask): Make id optional
1 parent b035cde commit 5465a8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/tools/TaskQueue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This is the shape of a task that the queue can run. It has:
3737

3838
```ts
3939
interface BaseQueueTask<T = any, K extends Record<string, any> = Record<string, any>> {
40-
id: string;
40+
id?: string;
4141
type: string;
4242
priority?: TaskPriorityLevel;
4343
metadata?: K;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nasriya/atomix",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Composable helper functions for building reliable systems",
55
"keywords": [
66
"networking",

src/tools/queues/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface BaseQueueTask<T = any, K extends Record<string, any> = Record<s
1414
* Can be generated via the queue manager's `generateTaskId()` method,
1515
* or provided by the user. Must be unique within the queue.
1616
*/
17-
id: string;
17+
id?: string;
1818

1919
/**
2020
* A string indicating the task's type or category.

0 commit comments

Comments
 (0)