UNPKG

@scalar/api-client

Version:

the open source API testing client

13 lines (12 loc) 305 B
import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref"; const m = ({ operation: r, name: o, type: t }) => r.parameters?.find((a) => { const e = n(a); return e.in === t && e.name.toLowerCase() === o.toLowerCase(); }) ?? null; export { m as getOperationHeader };