/opt/canhelp/node_modules/next/dist/shared/lib
NameSizeModeActions
errors/-0755rm
i18n/-0755rm
isomorphic/-0755rm
lazy-dynamic/-0755rm
page-path/-0755rm
router/-0755rm
segment-cache/-0755rm
turbopack/-0755rm
utils/-0755rm
amp-context.shared-runtime.d.ts850644editdlrm
amp-context.shared-runtime.js5920644editdlrm
amp-context.shared-runtime.js.map5810644editdlrm
amp-mode.d.ts1910644editdlrm
amp-mode.js4190644editdlrm
amp-mode.js.map4860644editdlrm
amp.d.ts430644editdlrm
amp.js10260644editdlrm
amp.js.map6080644editdlrm
app-dynamic.d.ts8750644editdlrm
app-dynamic.js12690644editdlrm
app-dynamic.js.map18880644editdlrm
app-router-context.shared-runtime.d.ts51030644editdlrm
app-router-context.shared-runtime.js16860644editdlrm
app-router-context.shared-runtime.js.map63390644editdlrm
bloom-filter.d.ts5980644editdlrm
bloom-filter.js29650644editdlrm
bloom-filter.js.map55080644editdlrm
canary-only.d.ts1700644editdlrm
canary-only.js12820644editdlrm
canary-only.js.map14660644editdlrm
constants.d.ts59880644editdlrm
constants.js149340644editdlrm
constants.js.map122990644editdlrm
deep-freeze.d.ts5120644editdlrm
deep-freeze.js8680644editdlrm
deep-freeze.js.map17600644editdlrm
deep-readonly.d.ts3890644editdlrm
deep-readonly.js3480644editdlrm
deep-readonly.js.map5650644editdlrm
dset.d.ts1170644editdlrm
dset.js19140644editdlrm
dset.js.map25700644editdlrm
dynamic.d.ts17110644editdlrm
dynamic.js54130644editdlrm
dynamic.js.map75250644editdlrm
encode-uri-path.d.ts610644editdlrm
encode-uri-path.js3620644editdlrm
encode-uri-path.js.map4690644editdlrm
error-source.d.ts2310644editdlrm
error-source.js8580644editdlrm
error-source.js.map10300644editdlrm
escape-regexp.d.ts650644editdlrm
escape-regexp.js6940644editdlrm
escape-regexp.js.map8520644editdlrm
fnv1a.d.ts3350644editdlrm
fnv1a.js27700644editdlrm
fnv1a.js.map40890644editdlrm
format-webpack-messages.d.ts820644editdlrm
format-webpack-messages.js84980644editdlrm
format-webpack-messages.js.map129940644editdlrm
get-hostname.d.ts4540644editdlrm
get-hostname.js6790644editdlrm
get-hostname.js.map13820644editdlrm
get-img-props.d.ts33540644editdlrm
get-img-props.js252010644editdlrm
get-img-props.js.map378620644editdlrm
get-rspack.d.ts1000644editdlrm
get-rspack.js25850644editdlrm
get-rspack.js.map27970644editdlrm
get-webpack-bundler.d.ts2640644editdlrm
get-webpack-bundler.js6320644editdlrm
get-webpack-bundler.js.map7250644editdlrm
hash.d.ts1090644editdlrm
hash.js13260644editdlrm
hash.js.map15260644editdlrm
head-manager-context.shared-runtime.d.ts2880644editdlrm
head-manager-context.shared-runtime.js6160644editdlrm
head-manager-context.shared-runtime.js.map8630644editdlrm
head.d.ts4460644editdlrm
head.js70060644editdlrm
head.js.map96060644editdlrm
hooks-client-context.shared-runtime.d.ts3080644editdlrm
hooks-client-context.shared-runtime.js11080644editdlrm
hooks-client-context.shared-runtime.js.map11450644editdlrm
html-context.shared-runtime.d.ts18890644editdlrm
html-context.shared-runtime.js11490644editdlrm
html-context.shared-runtime.js.map27870644editdlrm
image-blur-svg.d.ts3700644editdlrm
image-blur-svg.js14950644editdlrm
image-blur-svg.js.map21220644editdlrm
image-config-context.shared-runtime.d.ts1630644editdlrm
image-config-context.shared-runtime.js6930644editdlrm
image-config-context.shared-runtime.js.map7660644editdlrm
image-config.d.ts43030644editdlrm
image-config.js14280644editdlrm
image-config.js.map59410644editdlrm
image-external.d.ts7420644editdlrm
image-external.js14850644editdlrm
image-external.js.map21760644editdlrm
image-loader.d.ts2710644editdlrm
image-loader.js50710644editdlrm
image-loader.js.map67600644editdlrm
invariant-error.d.ts1120644editdlrm
invariant-error.js5010644editdlrm
invariant-error.js.map6820644editdlrm
is-internal.d.ts3550644editdlrm
is-internal.js12980644editdlrm
is-internal.js.map12970644editdlrm
is-plain-object.d.ts1250644editdlrm
is-plain-object.js11800644editdlrm
is-plain-object.js.map12500644editdlrm
is-thenable.d.ts2330644editdlrm
is-thenable.js5370644editdlrm
is-thenable.js.map6790644editdlrm
loadable-context.shared-runtime.d.ts1560644editdlrm
loadable-context.shared-runtime.js6130644editdlrm
loadable-context.shared-runtime.js.map6520644editdlrm
loadable.shared-runtime.d.ts15430644editdlrm
loadable.shared-runtime.js84580644editdlrm
loadable.shared-runtime.js.map138400644editdlrm
magic-identifier.d.ts1280644editdlrm
magic-identifier.js36540644editdlrm
magic-identifier.js.map41460644editdlrm
match-local-pattern.d.ts2530644editdlrm
match-local-pattern.js13010644editdlrm
match-local-pattern.js.map16960644editdlrm
match-remote-pattern.d.ts2680644editdlrm
match-remote-pattern.js19310644editdlrm
match-remote-pattern.js.map27230644editdlrm
mitt.d.ts2630644editdlrm
mitt.js22470644editdlrm
mitt.js.map30140644editdlrm
modern-browserslist-target.d.ts1990644editdlrm
modern-browserslist-target.js6520644editdlrm
modern-browserslist-target.js.map8930644editdlrm
no-fallback-error.external.d.ts740644editdlrm
no-fallback-error.external.js4080644editdlrm
no-fallback-error.external.js.map4260644editdlrm
normalized-asset-prefix.d.ts880644editdlrm
normalized-asset-prefix.js9610644editdlrm
normalized-asset-prefix.js.map13140644editdlrm
promise-with-resolvers.d.ts820644editdlrm
promise-with-resolvers.js6060644editdlrm
promise-with-resolvers.js.map7790644editdlrm
router-context.shared-runtime.d.ts1480644editdlrm
router-context.shared-runtime.js5870644editdlrm
router-context.shared-runtime.js.map6220644editdlrm
runtime-config.external.d.ts2930644editdlrm
runtime-config.external.js7220644editdlrm
runtime-config.external.js.map6720644editdlrm
segment.d.ts5040644editdlrm
segment.js15620644editdlrm
segment.js.map17330644editdlrm
server-inserted-html.shared-runtime.d.ts2880644editdlrm
server-inserted-html.shared-runtime.js11710644editdlrm
server-inserted-html.shared-runtime.js.map13470644editdlrm
server-reference-info.d.ts11460644editdlrm
server-reference-info.js16010644editdlrm
server-reference-info.js.map33420644editdlrm
side-effect.d.ts4520644editdlrm
side-effect.js27490644editdlrm
side-effect.js.map39470644editdlrm
styled-jsx.d.ts430644editdlrm
styled-jsx.js990644editdlrm
styled-jsx.js.map2310644editdlrm
utils.d.ts92010644editdlrm
utils.js62890644editdlrm
utils.js.map160730644editdlrm
zod.d.ts3810644editdlrm
zod.js33590644editdlrm
zod.js.map45070644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.d.ts (5103B)
import type { FetchServerResponseResult } from '../../client/components/router-reducer/fetch-server-response'; import type { FocusAndScrollRef, PrefetchKind } from '../../client/components/router-reducer/router-reducer-types'; import type { FlightRouterState, FlightSegmentPath } from '../../server/app-render/types'; import React from 'react'; export type ChildSegmentMap = Map; /** * Cache node used in app-router / layout-router. */ export type CacheNode = ReadyCacheNode | LazyCacheNode; export type LoadingModuleData = [React.JSX.Element, React.ReactNode, React.ReactNode] | null; /** viewport metadata node */ export type HeadData = React.ReactNode; export type LazyCacheNode = { /** * When rsc is null, this is a lazily-initialized cache node. * * If the app attempts to render it, it triggers a lazy data fetch, * postpones the render, and schedules an update to a new tree. * * TODO: This mechanism should not be used when PPR is enabled, though it * currently is in some cases until we've implemented partial * segment fetching. */ rsc: null; /** * A prefetched version of the segment data. See explanation in corresponding * field of ReadyCacheNode (below). * * Since LazyCacheNode mostly only exists in the non-PPR implementation, this * will usually be null, but it could have been cloned from a previous * CacheNode that was created by the PPR implementation. Eventually we want * to migrate everything away from LazyCacheNode entirely. */ prefetchRsc: React.ReactNode; /** * A pending response for the lazy data fetch. If this is not present * during render, it is lazily created. */ lazyData: Promise | null; prefetchHead: HeadData | null; head: HeadData; loading: LoadingModuleData | Promise; /** * Child parallel routes. */ parallelRoutes: Map; /** * The timestamp of the navigation that last updated the CacheNode's data. If * a CacheNode is reused from a previous navigation, this value is not * updated. Used to track the staleness of the data. */ navigatedAt: number; }; export type ReadyCacheNode = { /** * When rsc is not null, it represents the RSC data for the * corresponding segment. * * `null` is a valid React Node but because segment data is always a * component, we can use `null` to represent empty. * * TODO: For additional type safety, update this type to * Exclude. Need to update createEmptyCacheNode to * accept rsc as an argument, or just inline the callers. */ rsc: React.ReactNode; /** * Represents a static version of the segment that can be shown immediately, * and may or may not contain dynamic holes. It's prefetched before a * navigation occurs. * * During rendering, we will choose whether to render `rsc` or `prefetchRsc` * with `useDeferredValue`. As with the `rsc` field, a value of `null` means * no value was provided. In this case, the LayoutRouter will go straight to * rendering the `rsc` value; if that one is also missing, it will suspend and * trigger a lazy fetch. */ prefetchRsc: React.ReactNode; /** * There should never be a lazy data request in this case. */ lazyData: null; prefetchHead: HeadData | null; head: HeadData; loading: LoadingModuleData | Promise; parallelRoutes: Map; navigatedAt: number; }; export interface NavigateOptions { scroll?: boolean; } export interface PrefetchOptions { kind: PrefetchKind; onInvalidate?: () => void; } export interface AppRouterInstance { /** * Navigate to the previous history entry. */ back(): void; /** * Navigate to the next history entry. */ forward(): void; /** * Refresh the current page. */ refresh(): void; /** * Navigate to the provided href. * Pushes a new history entry. */ push(href: string, options?: NavigateOptions): void; /** * Navigate to the provided href. * Replaces the current history entry. */ replace(href: string, options?: NavigateOptions): void; /** * Prefetch the provided href. */ prefetch(href: string, options?: PrefetchOptions): void; } export declare const AppRouterContext: React.Context; export declare const LayoutRouterContext: React.Context<{ parentTree: FlightRouterState; parentCacheNode: CacheNode; parentSegmentPath: FlightSegmentPath | null; url: string; } | null>; export declare const GlobalLayoutRouterContext: React.Context<{ tree: FlightRouterState; focusAndScrollRef: FocusAndScrollRef; nextUrl: string | null; }>; export declare const TemplateContext: React.Context; export declare const MissingSlotContext: React.Context>;