Skip to content

Commit

Permalink
Improve typings for legacy elements
Browse files Browse the repository at this point in the history
  • Loading branch information
a-xin committed Sep 14, 2018
1 parent b39a091 commit d6d3c82
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,21 @@ export interface PolymerInit {
extends?: string;
properties?: PolymerElementProperties;
observers?: string[];
template?: HTMLTemplateElement|string;
_template?: HTMLTemplateElement;
hostAttributes?: {[key: string]: any};
listeners?: {[key: string]: string};
behaviors?: PolymerInit | PolymerInit[];

// Lifecycle methods
registered?(): void;
created?(): void;
attached?(): void;
detached?(): void;
ready?(): void;
attributeChanged?(name: string, old?: string, value?: string);

// Allow any other user-defined properties
[others: string]: any;
}

// Types from "externs/polymer-internal-shared-types.js"
Expand Down

0 comments on commit d6d3c82

Please sign in to comment.