UNPKG

@nlabs/gothamjs

Version:
8 lines (7 loc) 504 B
/** * Copyright (c) 2018-Present, Nitrogen Labs, Inc. * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import { ComponentType } from 'react'; export declare const lazyImport: <T extends ComponentType<unknown>, I extends { [K2 in K]: T; }, K extends keyof I>(factory: () => Promise<I>, name: K) => I; export declare const loadRemoteComponent: (url: string, exportName?: string) => (props: Record<string, unknown>) => import("react/jsx-runtime").JSX.Element;