mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
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:
parent
1e39effb59
commit
b0b014fdda
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user