Merge pull request #12161 from mmckenziedev/polymer-renderstatus

Adding RenderStatus to API
This commit is contained in:
Zhengbo Li
2016-10-26 11:12:05 -07:00
committed by GitHub
+19 -5
View File
@@ -7,7 +7,7 @@
declare namespace polymer {
type PropConstructorType = StringConstructor|ObjectConstructor|BooleanConstructor|NumberConstructor|DateConstructor|ArrayConstructor;
type PropConstructorType = StringConstructor | ObjectConstructor | BooleanConstructor | NumberConstructor | DateConstructor | ArrayConstructor;
interface PropObjectType {
type: PropConstructorType;
@@ -305,15 +305,29 @@ declare namespace polymer {
wantShadow: boolean
}
interface PolymerStatic {
interface RenderStatus {
afterNextRender(element: Element, fn: Function, args?: any): void;
hasRendered(): boolean;
whenReady(cb: Function): void;
}
interface ImportStatus extends RenderStatus {
whenLoaded(cb: Function): void;
}
interface PolymerStatic {
Settings: Settings;
dom:DomApiStatic;
dom: DomApiStatic;
(prototype: Base|{new ():Base}):webcomponents.CustomElementConstructor;
(prototype: Base | { new (): Base }): webcomponents.CustomElementConstructor;
Class(prototype: Base|{new ():Base}):webcomponents.CustomElementConstructor;
Class(prototype: Base | { new (): Base }): webcomponents.CustomElementConstructor;
RenderStatus: RenderStatus
/** @deprecated */
ImportStatus: ImportStatus
}
}