From 09e011b3890af1525f27b788da63b09d8e874604 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 19 Oct 2018 19:15:27 -0400 Subject: [PATCH] Format. --- js/dom_types.ts | 10 +++++----- js/fetch.ts | 4 ++-- js/util.ts | 2 +- js/util_test.ts | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/js/dom_types.ts b/js/dom_types.ts index 71881773d8..75f683be5b 100644 --- a/js/dom_types.ts +++ b/js/dom_types.ts @@ -296,8 +296,8 @@ export interface Headers { append(name: string, value: string): void; /** Deletes a header from a `Headers` object. */ delete(name: string): void; - /** Returns an iterator allowing to go through all key/value pairs - * contained in this Headers object. The both the key and value of each pairs + /** Returns an iterator allowing to go through all key/value pairs + * contained in this Headers object. The both the key and value of each pairs * are ByteString objects. */ entries(): IterableIterator<[string, string]>; @@ -309,7 +309,7 @@ export interface Headers { * header. */ has(name: string): boolean; - /** Returns an iterator allowing to go through all keys contained in + /** Returns an iterator allowing to go through all keys contained in * this Headers object. The keys are ByteString objects. */ keys(): IterableIterator; @@ -317,7 +317,7 @@ export interface Headers { * the header if it does not already exist. */ set(name: string, value: string): void; - /** Returns an iterator allowing to go through all values contained in + /** Returns an iterator allowing to go through all values contained in * this Headers object. The values are ByteString objects. */ values(): IterableIterator; @@ -326,7 +326,7 @@ export interface Headers { // tslint:disable-next-line:no-any thisArg?: any ): void; - /** The Symbol.iterator well-known symbol specifies the default + /** The Symbol.iterator well-known symbol specifies the default * iterator for this Headers object */ [Symbol.iterator](): IterableIterator<[string, string]>; diff --git a/js/fetch.ts b/js/fetch.ts index eef149e4d5..3559f3db84 100644 --- a/js/fetch.ts +++ b/js/fetch.ts @@ -89,7 +89,7 @@ export class DenoHeaders implements domTypes.Headers { keys(): IterableIterator { const iterators = this.headerMap.keys(); - return new CreateIterableIterator(iterators); + return new CreateIterableIterator(iterators); } set(name: string, value: string): void { @@ -99,7 +99,7 @@ export class DenoHeaders implements domTypes.Headers { values(): IterableIterator { const iterators = this.headerMap.values(); - return new CreateIterableIterator(iterators); + return new CreateIterableIterator(iterators); } forEach( diff --git a/js/util.ts b/js/util.ts index 0d2049842c..fbd461bbe8 100644 --- a/js/util.ts +++ b/js/util.ts @@ -138,7 +138,7 @@ export class CreateIterableIterator implements IterableIterator { [Symbol.iterator](): IterableIterator { return this; - } + } next(): IteratorResult { return this._iterators.next(); diff --git a/js/util_test.ts b/js/util_test.ts index b7111fd0de..0ca2f4433d 100644 --- a/js/util_test.ts +++ b/js/util_test.ts @@ -23,4 +23,4 @@ test(function CreateIterableIteratorSuccess() { assert(key in obj); assertEqual(value, obj[key]); } -}); \ No newline at end of file +});