UNPKG

@nfdi4plants/arc-web-view

Version:

An Annotated Research Context web viewer in the style of GitHub's Primer ProductUI.

10 lines (9 loc) 389 B
import { FileTypes } from '../util/types'; export declare const useFileCacheContext: () => import('../util/types').FileCacheContextType; type FetchFunction = (key: string) => Promise<FileTypes>; export declare const useCachedFiles: (keys: string[], fetchFile: FetchFunction) => { files: Record<string, FileTypes>; loading: boolean; errors: Record<string, Error>; }; export {};