fix TS compilation

This commit is contained in:
Thibault Duplessis 2017-08-19 21:20:36 -05:00
parent ba61397703
commit 9c829db332

View file

@ -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);
}