diff options
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]) { |