piral-base
Version:
The base library for creating a Piral instance.
9 lines (8 loc) • 377 B
TypeScript
import type { DefaultLoaderConfig, PiletV1Entry, Pilet } from '../../types';
/**
* Loads the provided UMD-powered pilet.
* @param entry The pilet's entry.
* @param config The configuration for loading the pilet.
* @returns The evaluated pilet that can now be integrated.
*/
export default function loader(entry: PiletV1Entry, config: DefaultLoaderConfig): Promise<Pilet>;