vaadin / vaadin-board

Web Component for creating flexible responsive layouts and building nice looking dashboards.
https://vaadin.com/components/vaadin-board
Other
17 stars 11 forks source link

feat: prepare for TS defs generation #128

Closed Haprog closed 4 years ago

Haprog commented 4 years ago

Fixes #127

Generated TS definitions look like this:

vaadin-board.d.ts

import {PolymerElement} from '@polymer/polymer/polymer-element.js';

import {IronResizableBehavior} from '@polymer/iron-resizable-behavior/iron-resizable-behavior.js';

import {ElementMixin} from '@vaadin/vaadin-element-mixin/vaadin-element-mixin.js';

import {html} from '@polymer/polymer/lib/utils/html-tag.js';

import {mixinBehaviors} from '@polymer/polymer/lib/legacy/class.js';

declare class BoardElement extends
  ElementMixin(
  PolymerElement) {

  static _finalizeClass(): void;
  redraw(): void;
}

declare global {
  interface HTMLElementTagNameMap {
    "vaadin-board": BoardElement;
  }
}

export {BoardElement};

vaadin-board-row.d.ts

import {PolymerElement} from '@polymer/polymer/polymer-element.js';

import {IronResizableBehavior} from '@polymer/iron-resizable-behavior/iron-resizable-behavior.js';

import {ElementMixin} from '@vaadin/vaadin-element-mixin/vaadin-element-mixin.js';

import {html} from '@polymer/polymer/lib/utils/html-tag.js';

import {afterNextRender} from '@polymer/polymer/lib/utils/render-status.js';

import {DomRepeat} from '@polymer/polymer/lib/elements/dom-repeat.js';

import {DomIf} from '@polymer/polymer/lib/elements/dom-if.js';

import {mixinBehaviors} from '@polymer/polymer/lib/legacy/class.js';

declare class BoardRowElement extends
  ElementMixin(
  PolymerElement) {

  ready(): void;
  connectedCallback(): void;
  redraw(): void;
}

declare global {
  interface HTMLElementTagNameMap {
    "vaadin-board-row": BoardRowElement;
  }
}

export {BoardRowElement};
CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.