File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
packages/react-router/lib/rsc Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " react-router " : patch
3
+ ---
4
+
5
+ Remove dependency on ` @types/node ` in TypeScript declaration files
Original file line number Diff line number Diff line change 247
247
- mcansh
248
248
- MeatSim
249
249
- MenouerBetty
250
+ - Methuselah96
250
251
- mfijas
251
252
- MichaelDeBoey
252
253
- michal-antczak
Original file line number Diff line number Diff line change @@ -69,13 +69,9 @@ type ServerContext = {
69
69
redirect ?: Response ;
70
70
} ;
71
71
72
- declare global {
73
- var ___reactRouterServerStorage___ :
74
- | AsyncLocalStorage < ServerContext >
75
- | undefined ;
76
- }
77
-
78
- const globalVar = typeof globalThis !== "undefined" ? globalThis : global ;
72
+ const globalVar = ( typeof globalThis !== "undefined" ? globalThis : global ) as {
73
+ ___reactRouterServerStorage___ ?: AsyncLocalStorage < ServerContext > ;
74
+ } ;
79
75
80
76
const ServerStorage = ( globalVar . ___reactRouterServerStorage___ ??=
81
77
new AsyncLocalStorage < ServerContext > ( ) ) ;
You can’t perform that action at this time.
0 commit comments