16 lines
527 B
TypeScript
16 lines
527 B
TypeScript
export declare type RowData = Record<string, any>;
|
|
/**
|
|
* 合并默认值
|
|
* @param options - 需要初始化的对象
|
|
* @param defaults - 默认值
|
|
*/
|
|
export declare function mergeOptions<T, U>(options: T, defaults: U): T & U;
|
|
export declare function range(arr: number[]): [number, number];
|
|
export declare function checkArray<T>(target: T[]): target is T[];
|
|
/**
|
|
* 断言
|
|
* @param test - 需要断言的内容
|
|
* @param errorMessage - 错误信息
|
|
*/
|
|
export declare function assert(test: any, errorMessage: string): void;
|