@ryo-98/react-api-bridge
Version:
A registry for component imperative api
11 lines (10 loc) • 404 B
JavaScript
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
};