Skip to content

Commit

Permalink
fix: TS fixes based on findings [skip ci] (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Jun 17, 2020
1 parent 0630b03 commit 509a3b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions @types/interfaces.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { DialogElement } from '../src/vaadin-dialog.js';

export type DialogRenderer = (root: HTMLElement, dialog?: DialogElement) => void;

export type DialogResizableDirection = 'n' | 'e' | 's' | 'w' | 'nw' | 'ne' | 'se' | 'sw';

export type DialogResizeDimensions = {
Expand Down
4 changes: 1 addition & 3 deletions gen-tsd.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
"theme/**/*"
],
"autoImport": {
"@vaadin/vaadin-overlay/@types/interfaces": [
"OverlayRenderer"
],
"./@types/interfaces": [
"DialogRenderer",
"DialogResizableDirection",
"DialogResizeDimensions",
"DialogOverlayBounds",
Expand Down
2 changes: 1 addition & 1 deletion src/vaadin-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
*
* - `root` The root container DOM element. Append your content to it.
* - `dialog` The reference to the `<vaadin-dialog>` element.
* @type {OverlayRenderer | undefined}
* @type {DialogRenderer | undefined}
*/
renderer: Function,

Expand Down

0 comments on commit 509a3b8

Please sign in to comment.