mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Merge pull request #12161 from mmckenziedev/polymer-renderstatus
Adding RenderStatus to API
This commit is contained in:
Vendored
+19
-5
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user