Skip to content

Commit

Permalink
Update types.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jul 18, 2018
1 parent 52b25e4 commit 7897d0a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types/lib/legacy/polymer.dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ declare namespace Polymer {
*/
readonly activeElement: Node|null|undefined;

/**
* @param node Node for which to create a Polymer.dom helper object.
*/
constructor(node: Node|null);

/**
* Returns an instance of `Polymer.FlattenedNodesObserver` that
* listens for node changes on this element.
Expand Down Expand Up @@ -176,4 +181,5 @@ declare class EventApi {
* Returns the `composedPath` for this event.
*/
readonly path: EventTarget[];
constructor(event: any);
}
1 change: 1 addition & 0 deletions types/lib/utils/debounce.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
declare namespace Polymer {

class Debouncer {
constructor();

/**
* Creates a debouncer if no debouncer is passed as a parameter
Expand Down
7 changes: 7 additions & 0 deletions types/lib/utils/flattened-nodes-observer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ declare namespace Polymer {
*/
class FlattenedNodesObserver {

/**
* @param target Node on which to listen for changes.
* @param callback Function called when there are additions
* or removals from the target's list of flattened nodes.
*/
constructor(target: _Element|null, callback: ((p0: _Element, p1: {target: _Element, addedNodes: _Element[], removedNodes: _Element[]}) => void)|null);

/**
* Returns the list of flattened nodes for the given `node`.
* This list consists of a node's children and, for any children
Expand Down
1 change: 1 addition & 0 deletions types/lib/utils/html-tag.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
declare class LiteralString {
value: string;
constructor(string: any);

/**
* @returns LiteralString string value
Expand Down

0 comments on commit 7897d0a

Please sign in to comment.