UNPKG

@ryo-98/react-api-bridge

Version:
11 lines (10 loc) 404 B
import { getUpperContextValue } from "./getUpperContextValue.js"; import { getApiDesc } from "./getApiDesc.js"; function getUpperApiDesc(contextValue, _name, options, bridgeOptions) { const parent = getUpperContextValue(options?.contextValue || contextValue, options?.shouldForwardYield); if (!parent) return; return getApiDesc(_name, parent.bridge, bridgeOptions); } export { getUpperApiDesc };