UNPKG

@ryo-98/react-api-bridge

Version:
7 lines (6 loc) 430 B
/// <reference types="react" /> import { BoundaryAPI } from "../../types/boundary.js"; import { BridgeAPIOptions } from "../../types/options.js"; import { APIParams } from "../../types/api.js"; import { ReactAPIBridge } from "../../types/bridge.js"; export declare function useBoundaryRef<A extends APIParams, O extends BridgeAPIOptions<A>, P>(apiBridge: ReactAPIBridge<A, P, O>): import("react").RefObject<BoundaryAPI<A, O, P>>;