@easyquery/core
Version:
EasyQuery.JS core modules
24 lines (23 loc) • 1.18 kB
TypeScript
import { FormatToken } from "./format_parser";
import { DataType } from '../types/data_type';
export declare namespace equtils {
interface ItemWithId {
id: any;
}
function combinePath(path1: string, path2: string): string;
function assign(target: any, ...args: any[]): any;
function assignInDepth(target: any, ...args: any[]): any;
function generateId(): string;
function findItemById<T extends ItemWithId>(array: Array<T>, id: any): T;
function indexOfArrayItem<T>(arr: Array<T>, item: T): number;
function moveArrayItem<T>(arr: Array<T>, old_index: number, new_index: number): void;
function removeArrayItem<T>(arr: Array<T>, value: T): T;
function shiftToFitWindow(absLeft: number, width: number): number;
function isObject(val: any): boolean;
function isNumericType(typeName: DataType): boolean;
function isIntType(typeName: DataType): boolean;
function isNumeric(val: any): boolean;
function areCompatibleDataTypes(type1: DataType, type2: DataType): boolean;
function parseOperatorFormat(operator: any): FormatToken[];
function isPropSet(obj: any, propName: any): any;
}