@rushdb/javascript-sdk
Version:
RushDB Javascript SDK
13 lines (12 loc) • 873 B
TypeScript
import type { PropertyValue } from '../types/index.js';
export declare const isArray: (item: any) => item is Array<any>;
export declare const isObject: (input: unknown) => input is object;
export declare const isEmptyObject: (input: unknown) => boolean;
export declare const isPrimitive: (value: unknown) => value is string | number | boolean | null;
export declare function omit<T, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
export declare const getOwnProperties: <T>(input: T) => T | Omit<T & object, keyof T>;
export declare const removeUndefinedDeep: <T>(input: T) => T;
export declare const isPropertyValue: (value: any) => value is PropertyValue;
export declare const isFlatObject: (input: any) => input is Record<string, PropertyValue>;
export declare const isString: (input: any) => input is string;
export declare const toBoolean: (value: any) => boolean;