guard.d.ts 511 B

1234567
  1. import { JSONObject } from './types';
  2. export declare function isDefined<T>(val: T | undefined): val is T;
  3. export declare function isObject(value: unknown): value is JSONObject;
  4. export declare function isStringArray(value: unknown): value is string[];
  5. export declare function isObjectArray(value: unknown): value is JSONObject[];
  6. export declare function isStringRecord(value: unknown): value is Record<string, string>;
  7. export declare function isObjectRecord(value: unknown): value is Record<string, JSONObject>;