@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
12 lines (11 loc) • 1.29 kB
TypeScript
export declare const isString: (item: any) => boolean;
export declare const isBoolean: (item: any) => boolean;
export declare const isNumber: (item: any) => boolean;
export declare const isObject: (item: any) => boolean;
export declare const isFunction: (item: any) => boolean;
export declare const isSerializeableObject: (item: any) => boolean;
export declare const isEmptyObject: (item: any) => boolean;
export declare const objectKeysWithFilter: (object: any, includeFunctions: boolean) => Array<string>;
export declare const mergeObjects: <T extends object = object>(target: T, nullOrUndefinedValueCustomHandler: (missingPropertyName: string, parent: object, defaultValue: object) => object, emptyStringValueCustomHandler: (propertyName: string, parent: object, defaultValue: object) => object, emptyArrayValueCustomHandler: (propertyName: string, parent: object, defaultValue: object) => object, ...sources: T[]) => T;
export declare const customNullCondition: <T extends object = object>(target: T, condition: (target: T) => boolean) => T;
export declare const deleteNullProperties: <T extends object = object>(target: T, disableTreatingEmptyStringAsNull: boolean, disableTreatingFalseAsNull: boolean, disableTreatingZeroAsNull: boolean, disableTreatingEmptyArrayAsNull: boolean) => void;