diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /cli/js/web/dom_iterable.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/js/web/dom_iterable.ts')
-rw-r--r-- | cli/js/web/dom_iterable.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/js/web/dom_iterable.ts b/cli/js/web/dom_iterable.ts index 271b2f655..7e26a12a4 100644 --- a/cli/js/web/dom_iterable.ts +++ b/cli/js/web/dom_iterable.ts @@ -14,13 +14,13 @@ export interface DomIterable<K, V> { forEach( callback: (value: V, key: K, parent: this) => void, // eslint-disable-next-line @typescript-eslint/no-explicit-any - thisArg?: any + thisArg?: any, ): void; } export function DomIterableMixin<K, V, TBase extends Constructor>( Base: TBase, - dataSymbol: symbol + dataSymbol: symbol, ): TBase & Constructor<DomIterable<K, V>> { // we have to cast `this` as `any` because there is no way to describe the // Base class in a way where the Symbol `dataSymbol` is defined. So the @@ -56,15 +56,15 @@ export function DomIterableMixin<K, V, TBase extends Constructor>( forEach( callbackfn: (value: V, key: K, parent: this) => void, // eslint-disable-next-line @typescript-eslint/no-explicit-any - thisArg?: any + thisArg?: any, ): void { requiredArguments( `${this.constructor.name}.forEach`, arguments.length, - 1 + 1, ); callbackfn = callbackfn.bind( - thisArg == null ? globalThis : Object(thisArg) + thisArg == null ? globalThis : Object(thisArg), ); // eslint-disable-next-line @typescript-eslint/no-explicit-any for (const [key, value] of (this as any)[dataSymbol]) { |