Remove types/node dependency

Any Node stuff we use (mostly, NWjs and pseudo-UMD) is an ugly hack
that TypeScript has trouble with, anyway.
This commit is contained in:
Guangcong Luo 2019-02-18 13:45:52 -06:00
parent 1e39effb59
commit b0b014fdda
2 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,6 @@
"devDependencies": {
"@types/jquery": "^3.3.1",
"@types/mocha": "^5.2.5",
"@types/node": "^8.0.7",
"eslint": "^4.11.0",
"mocha": "^5.2.0",
"preact": "^8.3.1",

View File

@ -16,6 +16,9 @@
* @license MIT
*/
declare var require: any;
declare var global: any;
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function indexOf(searchElement, fromIndex) {
for (let i = (fromIndex || 0); i < this.length; i++) {