UNPKG

piral-core

Version:

The core library for creating a Piral instance.

24 lines (23 loc) 784 B
import type { AvailableDependencies, PiletEntries } from '../types'; /** * The global dependencies, which represent the dependencies * shared from the app shell itself. */ export declare const globalDependencies: AvailableDependencies; /** * The default dependency selector, which just returns the provided * dependencies. */ export declare function defaultDependencySelector(dependencies: AvailableDependencies): AvailableDependencies; /** * The default pilet requester, which just returns an empty array. * Use your own code to connect to the feed service. * * @example ```js return fetch('https://feed.piral.cloud/api/v1/pilet/sample') .then(res => res.json()) .then(res => res.items); ``` */ export declare function defaultModuleRequester(): Promise<PiletEntries>;