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

Function isRecord

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

Source from the content-addressed store, hash-verified

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

Callers 1

queryParamEntriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected