UNPKG

formik

Version:

Forms in React, without tears

15 lines (14 loc) 985 B
import * as React from 'react'; export declare const isFunction: (obj: any) => obj is Function; export declare const isObject: (obj: any) => boolean; export declare const isInteger: (obj: any) => boolean; export declare const isString: (obj: any) => obj is string; export declare const isNaN: (obj: any) => boolean; export declare const isEmptyChildren: (children: any) => boolean; export declare const isPromise: (value: any) => value is PromiseLike<any>; export declare const isInputEvent: (value: any) => value is React.SyntheticEvent<any>; export declare function getActiveElement(doc?: Document): Element | null; export declare function makeCancelable<T extends Promise<any>>(promise: T): [T, () => void]; export declare function getIn(obj: any, key: string | string[], def?: any, p?: number): any; export declare function setIn(obj: any, path: string, value: any): any; export declare function setNestedObjectValues<T>(object: any, value: any, visited?: any, response?: any): T;