Make TS strict the effects folder (#10111)
This commit is contained in:
parent
2c30e6d909
commit
2da98a6024
6 changed files with 17 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright 2021 The Matrix.org Foundation C.I.C.
|
||||
Copyright 2021 - 2023 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
@ -51,9 +51,9 @@ export default class SpaceInvaders implements ICanvasEffect {
|
|||
|
||||
private context: CanvasRenderingContext2D | null = null;
|
||||
private particles: Array<Invader> = [];
|
||||
private lastAnimationTime: number;
|
||||
private lastAnimationTime = 0;
|
||||
|
||||
public isRunning: boolean;
|
||||
public isRunning = false;
|
||||
|
||||
public start = async (canvas: HTMLCanvasElement, timeout = 3000): Promise<void> => {
|
||||
if (!canvas) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue