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

Missing Polymer.instanceof and Polymer.isInstance declarations #89

Open
kwaclaw opened this issue Sep 9, 2016 · 0 comments
Open

Missing Polymer.instanceof and Polymer.isInstance declarations #89

kwaclaw opened this issue Sep 9, 2016 · 0 comments

Comments

@kwaclaw
Copy link

kwaclaw commented Sep 9, 2016

These two members are not really documented but have been there since release 1.0.7 and have been mentioned in Rob Dodson's Polycast#52.

They are mentioned in the release notes for 1.0.7: https://www.polymer-project.org/1.0/docs/release-notes and here is the issue for reference: Polymer/polymer#2083 .

This seems to work for me, but I don't think it is the proper typing:

declare var Polymer: {
    (prototype: polymer.Element): FunctionConstructor;
    Class(prototype: polymer.Element): Function;
    dom: polymer.dom;
    instanceof(obj: any, ctor: any): boolean;
    isInstance(obj: any): boolean;
    appendChild(node: HTMLElement): HTMLElement;
    insertBefore(node: HTMLElement, beforeNode: HTMLElement): HTMLElement;
    removeChild(node: HTMLElement): HTMLElement;
    updateStyles(): void;
    Base: any;
};
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

No branches or pull requests

1 participant