diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-19 19:15:27 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-20 01:19:59 -0400 |
commit | 09e011b3890af1525f27b788da63b09d8e874604 (patch) | |
tree | 64c572f3f38df7612f96102ab5c47f5cf1b03798 /js | |
parent | 826c2f4dac72a05c63bf098ea3ac83790cb30405 (diff) |
Format.
Diffstat (limited to 'js')
-rw-r--r-- | js/dom_types.ts | 10 | ||||
-rw-r--r-- | js/fetch.ts | 4 | ||||
-rw-r--r-- | js/util.ts | 2 | ||||
-rw-r--r-- | 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 71881773d..75f683be5 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<string>; @@ -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<string>; @@ -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 eef149e4d..3559f3db8 100644 --- a/js/fetch.ts +++ b/js/fetch.ts @@ -89,7 +89,7 @@ export class DenoHeaders implements domTypes.Headers { keys(): IterableIterator<string> { 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<string> { 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 0d2049842..fbd461bbe 100644 --- a/js/util.ts +++ b/js/util.ts @@ -138,7 +138,7 @@ export class CreateIterableIterator<T> implements IterableIterator<T> { [Symbol.iterator](): IterableIterator<T> { return this; - } + } next(): IteratorResult<T> { return this._iterators.next(); diff --git a/js/util_test.ts b/js/util_test.ts index b7111fd0d..0ca2f4433 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 +}); |