Skip to content

docs(queues): drop the explicit generic from defineQueue() in the README in @observerly/orderly - #67

Merged
michealroberts merged 1 commit into
mainfrom
docs/queues/inference
Sep 6, 2026
Merged

michealroberts merged 1 commit into
mainfrom
docs/queues/inference

Conversation

@michealroberts

Copy link
Copy Markdown
Member

What This Changes

The Quick Start's contract block no longer passes an explicit type argument to defineQueue(), since the body's type is inferred from the schema, and the EmailPayload type the Worker example uses is now read from the contract with QueueBody<typeof emails> rather than repeated with z.infer. The shape is named once, in the schema, and read from the contract everywhere else.

Notes For Reviewers

  • The block was type-checked as written against real zod before it was committed: the type read from the contract equals the schema's output in both directions, a kind the schema does not allow fails to compile, and the consumer's handler receives the same type.
  • No code changes, so the changeset is empty.

Checklist

  • Tests cover the change, and run inside workerd
  • A changeset is included, or the change is not one a consumer would notice
  • No Node built-ins were introduced

@michealroberts
michealroberts merged commit 80514d0 into main Sep 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant