@astro-utils/forms
Version:
Server component for Astro (call server functions from client side with validation and state management)
10 lines (9 loc) • 427 B
TypeScript
/**
* Returns the difference between two objects
*/
export declare function diffProps(object1: any, object2: any, skipKeys?: string[]): {};
export declare function getSomeProps(object: any, props: string[] | true): any;
/**
* Omit properties from an object, any property that starts with an underscore or is in the props array will be omitted
*/
export declare function omitProps(object: any, props: string[] | true): any;