@formkit/utils
Advanced tools
Comparing version 1.0.0-beta.7-ca7dad3 to 1.0.0-beta.7-da1ee13
@@ -120,12 +120,12 @@ /** | ||
export declare function init<T extends object>(obj: T): T & { | ||
__init: true; | ||
__init?: true; | ||
}; | ||
/** | ||
* Determines if an object is an object or not. | ||
* @param o - any value | ||
* Checks if an object is a simple array or record. | ||
* @param o - A value to check | ||
* @returns | ||
* @public | ||
*/ | ||
export declare function isObject(o: any): boolean; | ||
export declare function isObject(o: unknown): o is Record<PropertyKey, unknown> | unknown[]; | ||
@@ -158,2 +158,10 @@ /** | ||
/** | ||
* Determines if an object is an object or not. | ||
* @param o - any value | ||
* @returns | ||
* @public | ||
*/ | ||
export declare function isRecord(o: unknown): o is Record<PropertyKey, unknown>; | ||
/** | ||
* This converts camel-case to kebab case. It ONLY converts from camel to kebab. | ||
@@ -238,2 +246,9 @@ * @param str - Converts camel to kebab | ||
/** | ||
* Spreads an object or an array, otherwise returns the same value. | ||
* @param obj - Any value, but will spread objects and arrays | ||
* @public | ||
*/ | ||
export declare function spread<T>(obj: T, explicit?: string[]): T; | ||
/** | ||
* Generates a random string. | ||
@@ -240,0 +255,0 @@ * @returns string |
{ | ||
"name": "@formkit/utils", | ||
"version": "1.0.0-beta.7-ca7dad3", | ||
"version": "1.0.0-beta.7-da1ee13", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45206
1484