UNPKG

@shopify/react-async

Version:

Tools for creating powerful, asynchronously-loaded React components.

12 lines (11 loc) 381 B
import * as React from 'react'; export interface Registration { path: string | RegExp; render(url: URL): React.ReactNode; } export declare class PrefetchManager { registered: Set<Registration>; constructor(registered?: Registration[]); register(registration: Registration): () => boolean; } export declare const PrefetchContext: React.Context<PrefetchManager>;