UNPKG

fully-react

Version:
31 lines (28 loc) 800 B
import * as react from 'react'; type AssetDesc = string | { type: "style"; style: string; src?: string; }; declare global { var findAssets: () => Promise<AssetDesc[]>; } /** * Generates a link tag for a given file. This will load stylesheets and preload * everything else. It uses the file extension to determine the type. */ declare const Asset: ({ file }: { file: string; }) => JSX.Element | null; /** * Generates a link tag for a given file. This will load stylesheets and preload * everything else. It uses the file extension to determine the type. */ declare const Style: ({ style, src }: { style: string; src?: string | undefined; }) => JSX.Element; declare const Assets: react.FC<{ assets?: AssetDesc[] | undefined; }>; export { Asset, Assets, Style };