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 247247- mcansh
248248- MeatSim
249249- MenouerBetty
250+ - Methuselah96
250251- mfijas
251252- MichaelDeBoey
252253- michal-antczak
Original file line number Diff line number Diff line change @@ -69,13 +69,9 @@ type ServerContext = {
6969 redirect ?: Response ;
7070} ;
7171
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+ } ;
7975
8076const ServerStorage = ( globalVar . ___reactRouterServerStorage___ ??=
8177 new AsyncLocalStorage < ServerContext > ( ) ) ;
You can’t perform that action at this time.
0 commit comments