-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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 virtual module type to properly handle optional properties #13327
base: dev
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"react-router": patch | ||
--- | ||
|
||
Update `ServerBuild` type to ensure compatibility with TypeScript's `exactOptionalPropertyTypes` option |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,6 +303,7 @@ | |
- SkayuX | ||
- skratchdot | ||
- smithki | ||
- smorimoto | ||
- soartec-lab | ||
- sorokya | ||
- sorrycc | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -24,14 +24,20 @@ export interface ServerBuild { | |||||
}; | ||||||
routes: ServerRouteManifest; | ||||||
assets: AssetsManifest; | ||||||
basename?: string; | ||||||
// `| undefined` is required to ensure compatibility with TypeScript's | ||||||
// `exactOptionalPropertyTypes` option | ||||||
basename?: string | undefined; | ||||||
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.
Suggested change
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. Are you still experiencing issues without this change? If so, are you able to reproduce this issue in the test? 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. Yes, so I should investigate why this test does not fail! |
||||||
publicPath: string; | ||||||
assetsBuildDirectory: string; | ||||||
future: FutureConfig; | ||||||
ssr: boolean; | ||||||
unstable_getCriticalCss?: (args: { | ||||||
pathname: string; | ||||||
}) => OptionalCriticalCss | Promise<OptionalCriticalCss>; | ||||||
unstable_getCriticalCss?: | ||||||
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.
Suggested change
|
||||||
| ((args: { | ||||||
pathname: string; | ||||||
}) => OptionalCriticalCss | Promise<OptionalCriticalCss>) | ||||||
// `| undefined` is required to ensure compatibility with TypeScript's | ||||||
// `exactOptionalPropertyTypes` option | ||||||
| undefined; | ||||||
/** | ||||||
* @deprecated This is now done via a custom header during prerendering | ||||||
*/ | ||||||
|
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.