no longer need @types/defer-promise

rip-safari10
Niklas Fiekas 2021-01-22 11:21:23 +01:00
parent cd9ac247b7
commit 258b8df54c
4 changed files with 3 additions and 9 deletions

View File

@ -19,7 +19,6 @@
"prod": "yarn run compile"
},
"devDependencies": {
"@types/defer-promise": "1.0.0",
"@types/lichess": "2.0.0",
"typescript": "^4.1.3"
},

View File

@ -1,6 +1,6 @@
import { lichessVariantRules } from 'chessops/compat';
import { WorkerOpts, Work } from './types';
import { defer } from 'common/defer';
import { Deferred, defer } from 'common/defer';
const EVAL_REGEX = new RegExp(''
+ /^info depth (\d+) seldepth \d+ multipv (\d+) /.source
@ -13,7 +13,7 @@ export default class Protocol {
private work: Work | null = null;
private curEval: Tree.ClientEval | null = null;
private expectedPvs = 1;
private stopped: DeferPromise.Deferred<void> | null;
private stopped: Deferred<void> | null;
public engineName: string | undefined;

View File

@ -11,6 +11,6 @@
"target": "ES2016",
"module": "commonjs",
"lib": ["DOM", "ES2017", "DOM.iterable"],
"types": ["lichess", "cash", "defer-promise"]
"types": ["lichess", "cash"]
}
}

View File

@ -130,11 +130,6 @@
dependencies:
moment "^2.10.2"
"@types/defer-promise@1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@types/defer-promise/-/defer-promise-1.0.0.tgz#9c5054b7ef63fd0f0497d17b0ea1a849f9c6323b"
integrity sha512-NJAgn+jlo8V2TD0rj8zQy1nRzNLX73MQARTSQzWxco94lwzTOwRp7FPu7r4/Cnz715DxCWMGf3epjo7wbDBhVA==
"@types/estree@*":
version "0.0.46"
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.46.tgz#0fb6bfbbeabd7a30880504993369c4bf1deab1fe"