[polymer] add typings for light dom functions

documented here: https://polymer-library.polymer-project.org/1.0/docs/devguide/local-dom#light-dom-children
This commit is contained in:
Dmytro Kossa
2019-01-30 14:07:31 +01:00
committed by GitHub
parent f1eed296d2
commit 99c296bbfa

View File

@@ -218,6 +218,10 @@ declare global {
detached?(): void;
attributeChanged?(name: string, oldValue: any, newValue: any): void;
getEffectiveChildren?(): Node[];
getEffectiveChildNodes?(): Node[];
}
// This is the type of a Polymer element after it has gone through the
@@ -277,6 +281,10 @@ declare global {
observeNodes(callback: (info: ObservedNodeInfo) => void): {};
unobserveNodes(observer: {}): void;
getEffectiveChildren(): Node[];
getEffectiveChildNodes(): Node[];
childNodes:Node[];