Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
13
node_modules/next/dist/server/lib/lazy-result.d.ts
generated
vendored
Normal file
13
node_modules/next/dist/server/lib/lazy-result.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
export type LazyResult<TValue> = PromiseLike<TValue> & {
|
||||
value?: TValue;
|
||||
};
|
||||
export type ResolvedLazyResult<TValue> = PromiseLike<TValue> & {
|
||||
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<TValue>(fn: () => Promise<TValue>): LazyResult<TValue>;
|
||||
export declare function isResolvedLazyResult<TValue>(result: LazyResult<TValue>): result is ResolvedLazyResult<TValue>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue