From fce742aac140f2ec7777deda2a76b005af075ab9 Mon Sep 17 00:00:00 2001 From: Dan Corder Date: Thu, 17 Nov 2016 21:45:36 +0000 Subject: [PATCH] Add number type to propToCol --- handsontable/handsontable-tests.ts | 1 + handsontable/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;