UNPKG

piral-hooks-utils

Version:

Hooks and HOC for pilets and Piral instances.

8 lines (7 loc) 274 B
/** * Retrieves the Pilet API stored in the provider. * The component must be somewhat wrapped in the * PiletApiProvider, e.g., via withPiletApi wrapper. * @returns The Pilet API for this component. */ export declare function usePiletApi<TPiletApi = any>(): TPiletApi;