piral-core
Version:
The core library for creating a Piral instance.
4 lines (3 loc) • 429 B
TypeScript
import * as React from 'react';
import { AnyComponent, Errors, PiletApi, BaseComponentProps, GlobalStateContext } from '../types';
export declare function withApi<TProps>(context: GlobalStateContext, component: AnyComponent<TProps & BaseComponentProps>, piral: PiletApi, errorType: keyof Errors, wrapperType?: string, captured?: {}): React.MemoExoticComponent<(props: TProps) => React.JSX.Element> | React.ComponentType<TProps>;