google / google/closure-compiler

Missing externs for String and DOMTokenList

Open
#3,213 3 comments 0 reactions 0 assignees View on GitHub
internal-issue-created triage-done
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

/*
* Missing string externs.
* https://github.com/google/closure-compiler/blob/v20190106/externs/es5.js#L47
*/
String.prototype.trimStart = String.prototype.trimLeft;
String.prototype.trimEnd = String.prototype.trimRight;

/*
* Missing DOMTokenList externs.
* https://github.com/google/closure-compiler/blob/v20190106/externs/browser/html5.js#L3292
*/

/** @type {string} */
DOMTokenList.prototype.value;

/**
* @nosideeffects
* @return {!IteratorIterable>}
*/
DOMTokenList.prototype.entries = function () {};

/** @param {function(string, number, !IArrayLike)} callback */
DOMTokenList.prototype.forEach = function (callback) {};

/**
* @nosideeffects
* @return {!IteratorIterable}
*/
DOMTokenList.prototype.keys = function () {};

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.