Repository navigation
fix(sync-rules): emit type-only imports for SyncStream in TS schema - #847
Conversation
PowerSyncDatabase and SyncStream are types in generated schema files. Mark them as type imports so verbatimModuleSyntax and bundlers accept the output. Fixes powersync-ja#843
🦋 Changeset detectedLatest commit: 1e7cae0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 17 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Add a startsWith assertion for configs with empty streams so generated JS schemas omit SyncStream and PowerSyncDatabase imports.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 54d6487135
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Generated TypeScript schemas imported
PowerSyncDatabaseandSyncStreamas value imports. WithverbatimModuleSyntaxor strict bundlers, that fails becauseSyncStreamis type-only. This PR marks both astypeimports in TypeScript output.Fixes #843
Test plan
generate_schemaexpectationsAI Assistance
Implemented with AI assistance (Composer).