Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Miniflare 3] Add support for routing to multiple Workers #520
[Miniflare 3] Add support for routing to multiple Workers #520
Changes from all commits
9229b30
839b02c
f095aad
4e99a58
1abbdbc
b7e619e
0e2c68d
0ed3049
a629360
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
// @ts-expect-error
s appear to be becausePluginSharedOptions
hasreadonly
keys, which can be fixed (and the errors removed) by removing theas const
inpackages/tre/src/plugins/index.ts
. Would it be possible to make that change, or would it break something else? If it's not possible, could the// @ts-expect-error
comments be updated?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, I think removing the
as const
should be ok. It looks like that still keeps the specific Zod types so options inference/completions still work. Will make that change. 👍There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
839b02c (unfortunately the change to enforce code means
CoreOptionsSchema
has required options that aren't satisfied by the other options types, so we still need some// @ts-expect-errors
)