UNPKG

map-transform

Version:

Map and transform objects with mapping definitions

10 lines (9 loc) 638 B
import type { Path } from '../types.js'; export declare const isObject: (value: unknown) => value is Record<string, unknown>; export declare const isDate: (value: unknown) => value is Date; export declare const isString: (value: unknown) => value is string; export declare const isPath: (value: unknown) => value is Path; export declare const isArrayPath: (value: unknown) => value is Path; export declare const isNullOrUndefined: (value: unknown) => value is null | undefined; export declare const isNotNullOrUndefined: <T>(value: T) => value is NonNullable<T>; export declare const isNonEmptyArray: <T>(value: unknown) => value is T[];