Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: prepare for TS defs generation [skip ci] #148

Merged
merged 1 commit into from
Apr 29, 2020
Merged

Conversation

web-padawan
Copy link
Member

@web-padawan web-padawan commented Apr 29, 2020

Fixes #145

Generated file vaadin-button.d.ts looks like this:

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

import {GestureEventListeners} from '@polymer/polymer/lib/mixins/gesture-event-listeners.js';

import {ThemableMixin} from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';

import {ControlStateMixin} from '@vaadin/vaadin-control-state-mixin/vaadin-control-state-mixin.js';

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

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

import {addListener} from '@polymer/polymer/lib/utils/gestures.js';

declare class ButtonElement extends
  ElementMixin(
  ControlStateMixin(
  ThemableMixin(
  GestureEventListeners(
  PolymerElement)))) {
  readonly focusElement: Element|null;
  ready(): void;
  disconnectedCallback(): void;
}

declare global {
  interface HTMLElementTagNameMap {
    "vaadin-button": ButtonElement;
  }
}

export {ButtonElement};

@web-padawan web-padawan requested a review from Haprog April 29, 2020 08:32
src/vaadin-button.html Show resolved Hide resolved
@web-padawan web-padawan merged commit 5f54386 into master Apr 29, 2020
@web-padawan web-padawan deleted the gen-ts-defs branch April 29, 2020 10:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate TypeScript definitions for P3
2 participants