Skip to content

Commit

Permalink
Added: typings and its tests. #6217
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpiotr-dev committed Oct 31, 2019
1 parent 4a60846 commit 7de6ac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions handsontable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2295,6 +2295,7 @@ declare namespace Handsontable {
isOutsideInput: (element: HTMLElement) => boolean;
isRightClick: (event: Event) => boolean;
isVisible: (elem: HTMLElement) => boolean;
matchesCSSRules: (elem: HTMLElement, rule: CSSRule) => boolean;
offset: (elem: HTMLElement) => object;
outerHeight: (elem: HTMLElement) => number;
outerWidth: (element: HTMLElement) => number;
Expand Down
2 changes: 2 additions & 0 deletions test/types/helpers/dom.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Handsontable from 'handsontable';

const domElement = new HTMLElement();
const domEvent = new Event('foo');
const cssRule = new CSSRule();

const htmlCharacters = Handsontable.dom.HTML_CHARACTERS;

Expand Down Expand Up @@ -52,6 +53,7 @@ Handsontable.dom.isLeftClick(domEvent);
Handsontable.dom.isOutsideInput(domElement);
Handsontable.dom.isRightClick(domEvent);
Handsontable.dom.isVisible(domElement);
Handsontable.dom.matchesCSSRules(domElement, cssRule);
Handsontable.dom.offset(domElement);
Handsontable.dom.outerHeight(domElement);
Handsontable.dom.outerWidth(domElement);
Expand Down

0 comments on commit 7de6ac8

Please sign in to comment.