UNPKG

formularity

Version:

The last React form library you will ever need!

16 lines (15 loc) 1.3 kB
import { DeepKeys, DeepPartial, DeepValue, Entries } from './utilityTypes'; export declare const objectKeys: <TObj extends object>(obj: TObj) => Array<keyof TObj>; export declare const isObject: (item: unknown) => item is object; export declare const objectEntries: <T extends object>(obj: T) => Entries<T>; export declare const deepObjectKeys: <TObj>(obj: TObj) => DeepKeys<TObj>[]; export declare const getKeysWithDiffs: <TObj, TCompareObj>(obj: TObj, obj2: TCompareObj) => DeepKeys<TObj>[]; export declare const hasSameNestedKeys: <T, U>(obj1: T, obj2: U) => boolean; export declare const getViaPath: <TObj, TKey extends DeepKeys<TObj>>(obj: TObj, path: TKey) => DeepValue<TObj, TKey> | undefined; export declare const setViaPath: <TObj, TPath extends string, TNewValue>(obj: TObj, path: TPath, newValue: TNewValue) => TObj; export declare const isEqual: <TVal1, TVal2>(value: TVal1, other: TVal2) => boolean; export declare const isEmpty: <TVal>(value: TVal) => boolean; export declare const cloneDeep: <TObj>(obj: TObj, clonedObjects?: WeakMap<WeakKey, any>) => TObj; export declare const deepMerge: <TObj>(target: TObj, source: DeepPartial<TObj>) => TObj; export declare const getActiveElement: (doc?: Document) => Element | null; export declare const logDevWarning: (msg: string) => void;