Switching to definitely assigned parameters

This allows us to go in "full strict mode" (yeah!)
See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#strict-class-initialization
This commit is contained in:
David Négrier 2020-08-07 23:39:06 +02:00
parent c6298b2a89
commit 24fb605f50
10 changed files with 55 additions and 58 deletions

View file

@ -7,8 +7,6 @@ import {Character} from "../Entity/Character";
*/
export class RemotePlayer extends Character {
userId: string;
previousDirection: string;
wasMoving: boolean;
constructor(
userId: string,