/opt/canhelp/node_modules/next/dist/server/lib
Edit: /opt/canhelp/node_modules/next/dist/server/lib/lazy-result.d.ts (565B)
export type LazyResult
= PromiseLike & {
value?: TValue;
};
export type ResolvedLazyResult = PromiseLike & {
value: TValue;
};
/**
* Calls the given async function only when the returned promise-like object is
* awaited. Afterwards, it provides the resolved value synchronously as `value`
* property.
*/
export declare function createLazyResult(fn: () => Promise): LazyResult;
export declare function isResolvedLazyResult(result: LazyResult): result is ResolvedLazyResult;