UNPKG

@scalar/api-client

Version:

the open source API testing client

13 lines (12 loc) 360 B
import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref"; import { getParameterContentValue as r } from "./get-parameter-content.js"; const l = (e, t) => { if ("examples" in e && e.examples) return n(e.examples[t]); const o = r(e); if (o?.examples) return n(o.examples[t]); }; export { l as getParameterExample };