UNPKG

@ryo-98/react-api-bridge

Version:
7 lines (6 loc) 540 B
import React from "react"; import { BoundaryAPI, BoundaryProps } from "../../types/boundary.js"; import { BridgeAPIOptions } from "../../types/options.js"; import { APIParams } from "../../types/api.js"; import { ReactAPIBridge } from "../../types/bridge.js"; export default function createBoundary<A extends APIParams, P, O extends BridgeAPIOptions<A>>(apiBridge: ReactAPIBridge<A, P, O>): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<BoundaryProps<A, P, O>>> & React.RefAttributes<BoundaryAPI<A, O, P>>>;