Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 28, 2020
Merged

Conversation

web-padawan
Copy link
Member

Fixes #63

Generated TS definitions look like this:

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

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

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

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

declare class CookieConsentElement extends
  ElementMixin(
  ThemableMixin(
  PolymerElement)) {
  message: string;
  dismiss: string;
  learnMore: string;
  learnMoreLink: string;
  position: CookieConsentPosition;
  cookieName: string;
  static _finalizeClass(): void;
  connectedCallback(): void;
  disconnectedCallback(): void;
  _show(): void;
}

declare global {
  interface HTMLElementTagNameMap {
    "vaadin-cookie-consent": CookieConsentElement;
  }
}

export {CookieConsentElement};

import {CookieConsentPosition} from '../@types/interfaces';

@web-padawan web-padawan requested a review from Haprog May 28, 2020 08:37
magi-p3-post.js Outdated Show resolved Hide resolved
@types/interfaces.d.ts Outdated Show resolved Hide resolved
@web-padawan web-padawan merged commit fe274de into master May 28, 2020
@web-padawan web-padawan deleted the gen-ts-defs branch May 28, 2020 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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