sajmera
(Sajmera)
January 22, 2018, 9:25pm
1
We are evaluating the pro version for a project and ran into this issue. I see that the free version of handsontable has typings file handsontable.d.ts, but I cannot seem to find the typescript file for handontable-pro. Can you please point me to the typings file for the pro version?
Hi @sajmera
there is one .ts file for CE and PRO at
import { PikadayOptions } from "pikaday";
/**
* @internal
* Omit properties K from T
*/
type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never, [x: number]: never })[keyof T]>;
// type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; // TS >= 2.8
declare namespace _Handsontable {
class Core {
constructor(element: Element, options: Handsontable.GridSettings);
addHook<K extends keyof Handsontable.Hooks.Events>(key: K, callback: Handsontable.Hooks.Events[K] | Handsontable.Hooks.Events[K][]): void;
addHookOnce<K extends keyof Handsontable.Hooks.Events>(key: K, callback: Handsontable.Hooks.Events[K] | Handsontable.Hooks.Events[K][]): void;
alter(action: 'insert_row' | 'insert_col' | 'remove_row' | 'remove_col', index?: number | Array<[number, number]>, amount?: number, source?: string, keepEmptyRows?: boolean): void;
clear(): void;
colOffset(): number;
colToProp(col: number): string | number;
countCols(): number;
This file has been truncated. show original