Skip to content

Conversation

@CahidArda
Copy link
Collaborator

No description provided.

@linear
Copy link

linear bot commented Jun 24, 2025

Comment on lines +33 to +48
type PublicDLQMessage = Pick<
DLQMessage,
| "header"
| "body"
| "maxRetries"
| "notBefore"
| "createdAt"
| "callerIP"
| "workflowRunId"
| "workflowCreatedAt"
| "workflowUrl"
| "responseStatus"
| "responseHeader"
| "responseBody"
| "dlqId"
>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use Omit here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about this and wanted to use Pick. Becauase we may add fields to DLQMessage type to match the API but not realize that those fields end up in the public API.

In the current code, you need to explicitly write which fields should be in the public API

Copy link
Contributor

@alitariksahin alitariksahin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks solid

@CahidArda CahidArda merged commit 12bbe68 into main Jul 7, 2025
16 of 21 checks passed
@CahidArda CahidArda deleted the DX-1912-dlq-restart-resume branch July 7, 2025 13:46
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.

3 participants