Skip to content

Commit

Permalink
Make EventApi.path EventTarget type non-nullable.
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks committed Feb 7, 2018
1 parent 9b3ca2c commit 3ede9b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/legacy/polymer.dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@

/**
* Returns the `composedPath` for this event.
* @return {!Array<EventTarget>} The nodes this event propagated through
* @return {!Array<!EventTarget>} The nodes this event propagated through
*/
get path() {
return this.event.composedPath();
Expand Down
2 changes: 1 addition & 1 deletion types/lib/legacy/polymer.dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,5 @@ declare class EventApi {
/**
* Returns the `composedPath` for this event.
*/
readonly path: Array<EventTarget|null>;
readonly path: EventTarget[];
}

0 comments on commit 3ede9b5

Please sign in to comment.