guards.ts 203 B

123456
  1. /**
  2. * Shared type guard: checks if a value is a non-null object.
  3. */
  4. export function isRecord(value: unknown): value is Record<string, unknown> {
  5. return typeof value === 'object' && value !== null;
  6. }