diff --git a/handsontable/handsontable-tests.ts b/handsontable/handsontable-tests.ts index d062f9c629..6d55abd960 100644 --- a/handsontable/handsontable-tests.ts +++ b/handsontable/handsontable-tests.ts @@ -267,6 +267,7 @@ function test_HandsontableMethods() { hot.loadData([]); hot.populateFromArray(123, 123, [], 123, 123, 'foo', 'foo', 'foo', []); hot.propToCol('foo'); + hot.propToCol(123); hot.removeCellMeta(123, 123, 'foo'); hot.removeHook('foo', function() {}); hot.render(); diff --git a/handsontable/index.d.ts b/handsontable/index.d.ts index 7a82509baa..c08470739e 100644 --- a/handsontable/index.d.ts +++ b/handsontable/index.d.ts @@ -266,7 +266,7 @@ declare namespace ht { listen(): void; loadData(data: any[]): void; populateFromArray(row: number, col: number, input: any[], endRow?: number, endCol?: number, source?: string, method?: string, direction?: string, deltas?: any[]): any; - propToCol(prop: string): number; + propToCol(prop: string | number): number; removeCellMeta(row: number, col: number, key: string): void; removeHook(key: string, callback: Function): void; render(): void;