MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / isRecordLike

Function isRecordLike

packages/core/src/v3/apiClient/core.ts:528–533  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

526 | DataView;
527
528export const isRecordLike = (value: any): value is Record<string, string> =>
529 value != null &&
530 typeof value === "object" &&
531 !Array.isArray(value) &&
532 Object.keys(value).length > 0 &&
533 Object.keys(value).every((key) => typeof key === "string" && typeof value[key] === "string");
534
535/**
536 * A subclass of `Promise` providing additional helper methods

Callers 1

importEnvVarsMethod · 0.90

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…