MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / hasId

Function hasId

apps/web/src/scripts/posthog/audit-microdollar-usage.ts:188–190  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

186
187// Type guard to avoid "any"
188function hasId(x: unknown): x is { id: string | number } {
189 return typeof x === 'object' && x !== null && 'id' in x;
190}
191
192interface ErrorLog {
193 type: 'view' | 'insight';

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected