|
|
@@ -2,7 +2,7 @@ declare namespace _Handsontable {
|
|
|
class Core {
|
|
|
constructor(element: Element, options: Handsontable.DefaultSettings);
|
|
|
|
|
|
- addHook(key: string, callback: (() => void) | (() => void)[]): void;
|
|
|
+ addHook(key: string, callback: ((...restOfArg: any[]) => void) | ((...restOfArg: any[]) => void)[]): void;
|
|
|
|
|
|
addHookOnce(key: string, callback: (() => void) | (() => void)[]): void;
|
|
|
|
|
|
@@ -195,6 +195,9 @@ declare namespace _Handsontable {
|
|
|
validateRows(rows: number[], callback: (valid: boolean) => void): void;
|
|
|
|
|
|
isDestroyed: boolean;
|
|
|
+
|
|
|
+ // 自定义的字段,用于挂载原始数据
|
|
|
+ originSourceData?: any | any[];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -922,7 +925,7 @@ declare namespace Handsontable {
|
|
|
|
|
|
constructor(hotInstance?: _Handsontable.Core);
|
|
|
|
|
|
- addHook(name: string, callback: () => void): void;
|
|
|
+ addHook(name: string, callback: (...restOfArg: any[]) => void): void;
|
|
|
|
|
|
callOnPluginsReady(callback: () => void): void;
|
|
|
|