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:
@@ -10,12 +10,12 @@ enum Textures {
|
||||
}
|
||||
|
||||
export class FourOFourScene extends Phaser.Scene {
|
||||
private mapNotFoundField: TextField;
|
||||
private couldNotFindField: TextField;
|
||||
private fileNameField: Text;
|
||||
private logo: Image;
|
||||
private cat: Sprite;
|
||||
private file: string;
|
||||
private mapNotFoundField!: TextField;
|
||||
private couldNotFindField!: TextField;
|
||||
private fileNameField!: Text;
|
||||
private logo!: Image;
|
||||
private cat!: Sprite;
|
||||
private file!: string;
|
||||
|
||||
constructor() {
|
||||
super({
|
||||
|
||||
@@ -9,9 +9,8 @@ enum ReconnectingTextures {
|
||||
}
|
||||
|
||||
export class ReconnectingScene extends Phaser.Scene {
|
||||
private reconnectingField: TextField;
|
||||
private logo: Image;
|
||||
private cat: Sprite;
|
||||
private reconnectingField!: TextField;
|
||||
private logo!: Image;
|
||||
|
||||
constructor() {
|
||||
super({
|
||||
|
||||
Reference in New Issue
Block a user