Files
lcbp3.np-dms.work/frontend/node_modules/next/dist/server/use-cache/use-cache-wrapper.d.ts
2025-09-21 20:29:15 +07:00

15 lines
571 B
TypeScript
Executable File

import { type SearchParams } from '../request/search-params';
import type { Params } from '../request/params';
export interface UseCachePageComponentProps {
params: Promise<Params>;
searchParams: Promise<SearchParams>;
$$isPageComponent: true;
}
export type UseCacheLayoutComponentProps = {
params: Promise<Params>;
$$isLayoutComponent: true;
} & {
[slot: string]: any;
};
export declare function cache(kind: string, id: string, boundArgsLength: number, originalFn: (...args: unknown[]) => Promise<unknown>): (...args: any[]) => Promise<unknown>;