@formkit/utils
Advanced tools
Comparing version 1.0.0-beta.7-eadd934 to 1.0.0-beta.7-ebffb4b
@@ -23,3 +23,3 @@ /** | ||
*/ | ||
export declare function clone<T extends Record<string, unknown> | unknown[] | null>(obj: T): T; | ||
export declare function clone<T extends Record<string, unknown> | unknown[] | null>(obj: T, explicit?: string[]): T; | ||
@@ -55,6 +55,9 @@ /** | ||
* @param deep - Indicate if we should recurse into the object | ||
* @param explicit - Explicit keys | ||
* @returns boolean | ||
* @public | ||
*/ | ||
export declare function eq(valA: any, valB: any, deep?: boolean): boolean; | ||
export declare function eq(valA: any, // eslint-disable-line | ||
valB: any, // eslint-disable-line | ||
deep?: boolean, explicit?: string[]): boolean; | ||
@@ -138,3 +141,3 @@ /** | ||
*/ | ||
export declare function isPojo(o: any): boolean; | ||
export declare function isPojo(o: any): o is Record<string, any>; | ||
@@ -222,2 +225,10 @@ /** | ||
/** | ||
* Very shallowly clones the given object. | ||
* @param obj - The object to shallow clone | ||
* @returns | ||
* @public | ||
*/ | ||
export declare function shallowClone<T>(obj: T, explicit?: string[]): T; | ||
/** | ||
* Turn any string into a URL/DOM safe string. | ||
@@ -224,0 +235,0 @@ * @public |
{ | ||
"name": "@formkit/utils", | ||
"version": "1.0.0-beta.7-eadd934", | ||
"version": "1.0.0-beta.7-ebffb4b", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Shared utilities for FormKit packages", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
42267
1379