Files
shaka-player/externs/domstringlist.js
T
Joey Parrish b6fb13c07e Fix externs for DOMStringList
The built-in externs for DOMStringList in Closure Compiler do not seem
to list it as Iterable.  This overrides them to fix it.

This was caught by a compiler upgrade.

Issue #2528

Change-Id: I5a404f2502fce8fc3e956f68f6a51728d68f0654
2020-04-29 20:32:07 +00:00

28 lines
603 B
JavaScript

/** @license
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Externs for DOMStringList to override those provided by the
* Closure Compiler.
*
* TODO: contribute fixes to the Closure Compiler externs
*
* @externs
*/
/**
* This is an Iterable, but Closure's built-in extern doesn't seem to declare it
* as such in this version of the compiler (20200406).
*
* Here we override that definition.
*
* @implements {IArrayLike<string>}
* @implements {Iterable<string>}
* @constructor
* @suppress {duplicate}
*/
var DOMStringList = function() {};