Skip to content

Commit 0554dc9

Browse files
committed
Update type declaration so they work with tsc 4.2
1 parent dc2b3f0 commit 0554dc9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ts/util/LinkedList.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,12 @@ export class LinkedList<DataClass> {
246246
*
247247
* @return {Object} The iterator for walking the list in reverse
248248
*/
249+
public reversed(): IterableIterator<DataClass> | {
249250
/* tslint:disable-next-line:jsdoc-require */
250-
public reversed(): IterableIterator<DataClass> | {toArray(): DataClass[]} {
251+
toArray(): DataClass[];
252+
/* tslint:disable-next-line:jsdoc-require */
253+
[Symbol.iterator](): IterableIterator<DataClass>;
254+
} {
251255
let current = this.list;
252256
return {
253257
/* tslint:disable-next-line:jsdoc-require */

0 commit comments

Comments
 (0)