fix TS compilation
This commit is contained in:
parent
ba61397703
commit
9c829db332
|
@ -793,7 +793,7 @@ export default class AnalyseCtrl {
|
|||
return this.study && this.study.gamebookPlay();
|
||||
}
|
||||
|
||||
private withCg<A>(f: (cg: ChessgroundApi) => A): A | undefined {
|
||||
withCg<A>(f: (cg: ChessgroundApi) => A): A | undefined {
|
||||
if (this.chessground && this.cgVersion.js === this.cgVersion.dom)
|
||||
return f(this.chessground);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue