MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isRecord

Function isRecord

packages/plugins/openapi/src/sdk/invoke.ts:62–63  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

60type QueryParamEntry = readonly [name: string, value: string];
61
62const isRecord = (value: unknown): value is Record<string, unknown> =>
63 typeof value === "object" && value !== null && !Array.isArray(value);
64
65const queryParamEntries = (value: unknown, param: OperationParameter): QueryParamEntry[] => {
66 if (value === undefined || value === null) return [];

Callers 1

queryParamEntriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected