MCPcopy Create free account
hub / github.com/pollinations/pollinations / normalizeMetadata

Function normalizeMetadata

shared/auth/api-key.ts:291–298  ·  view source on GitHub ↗
(
    value: unknown,
)

Source from the content-addressed store, hash-verified

289}
290
291function normalizeMetadata(
292 value: unknown,
293): Record<string, unknown> | undefined {
294 if (!value || typeof value !== "object" || Array.isArray(value)) {
295 return undefined;
296 }
297 return value as Record<string, unknown>;
298}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected