-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: various fixes #5215
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
fix: various fixes #5215
Changes from all commits
0ec4f22
6b95473
e595e12
dde730e
95a08a6
c7135bc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| export default {} | ||
| export const startInstance = undefined | ||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1 +1 @@ | ||||||||||||
| export default {} | ||||||||||||
| export const startInstance = undefined | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same typing issue as React: Expose a union with a minimal method contract so downstream -export const startInstance = undefined
+export type StartInstanceShim = {
+ getOptions: () => Promise<unknown>
+}
+export const startInstance: StartInstanceShim | undefined = undefined📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Typing issue: exported
startInstanceisundefined, breaking downstream type narrowing.With
export const startInstance = undefined, the type isundefined, makingif (startInstance) { await startInstance.getOptions() }unreachable/invalid in consumers (e.g., hydrateStart.ts). Export a union with a minimal shape to satisfy usage.📝 Committable suggestion
🤖 Prompt for AI Agents