summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/@tufjs/models/dist/utils/guard.d.ts
blob: 60c80e160752e46afc641729d7b31423cb34c09a (plain)
1
2
3
4
5
6
7
import { JSONObject } from './types';
export declare function isDefined<T>(val: T | undefined): val is T;
export declare function isObject(value: unknown): value is JSONObject;
export declare function isStringArray(value: unknown): value is string[];
export declare function isObjectArray(value: unknown): value is JSONObject[];
export declare function isStringRecord(value: unknown): value is Record<string, string>;
export declare function isObjectRecord(value: unknown): value is Record<string, JSONObject>;