Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

[Miniflare 3] Bump to TypeScript 5 and fix bundled TypeScript output #635

Merged
merged 3 commits into from
Jul 21, 2023

Conversation

mrbbot
Copy link
Contributor

@mrbbot mrbbot commented Jul 21, 2023

This PR includes a bunch of small changes to fix Miniflare's types. The combination of changes fixes #634. See the commit descriptions for a summary of each. 👍

TypeScript 5 includes lots of goodies, and allows us to remove a
bunch of `@ts-expect-error`s.
@mrbbot mrbbot requested a review from a team July 21, 2023 09:53
@changeset-bot
Copy link

changeset-bot bot commented Jul 21, 2023

⚠️ No Changeset found

Latest commit: 23ccf01

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

mrbbot added 2 commits July 21, 2023 21:49
This loosens some resolution rules in accordance with how bundlers
like `esbuild` resolve modules. This also allows us to remove a bunch
of `@ts-expect-error`s.
This probably wasn't a problem, but generally it's not great to have
cyclic dependencies. For future reference, this was found with
`npx madge --circular --extensions ts packages/miniflare/src`.
@mrbbot mrbbot force-pushed the bcoll/tre-fix-types branch from 4a0312a to 23ccf01 Compare July 21, 2023 20:50
@mrbbot mrbbot merged commit b8c93f1 into tre Jul 21, 2023
@mrbbot mrbbot deleted the bcoll/tre-fix-types branch July 21, 2023 20:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants