Add TypeScript to olympus-bg module #47
Annotations
10 errors
Run npm run lint --prefix olympus-bg:
olympus-bg/src/game.ts#L106
'allTurns' is never reassigned. Use 'const' instead
|
Run npm run lint --prefix olympus-bg:
olympus-bg/src/game.ts#L115
'newBoard' is never reassigned. Use 'const' instead
|
|
Run npm run lint --prefix olympus-bg
Could not find a declaration file for module 'ramda.clone'. '/home/runner/work/olympus-backgammon/olympus-backgammon/olympus-bg/node_modules/ramda.clone/index.js' implicitly has an 'any' type.
|
Run npm run lint --prefix olympus-bg
Expected 1-3 arguments, but got 0.
|
Run npm run lint --prefix olympus-bg
Property 'state' does not exist on type '{ turn: null; winner: null; off: { 1: number; [-1]: number; }; pips: { size: number; top: 0; bot: 0; }[]; diceRolled: any[]; dice: any[]; recentMove: {}; possibleTurns: null; maxTurnLength: number; turnValidity: 0; firstPip: number; ... 8 more ...; allPossibleTurns(isBot: any): any; }'.
|
Run npm run lint --prefix olympus-bg
Expected 1 arguments, but got 0.
|
Run npm run lint --prefix olympus-bg
Object is possibly 'null'.
|
Run npm run lint --prefix olympus-bg
Type '0 | 2' is not assignable to type '0'.
|
Run npm run lint --prefix olympus-bg
'this' implicitly has type 'any' because it does not have a type annotation.
|
Loading