Enable @typescript-eslint/explicit-function-return-type in /src (#9788)
* Enable `@typescript-eslint/explicit-member-accessibility` on /src * Prettier * Enable `@typescript-eslint/explicit-function-return-type` in /src * Fix types * tsc strict fixes * Delint * Fix test * Fix bad merge
This commit is contained in:
committed by
GitHub
parent
7a36ba0fde
commit
030b7e90bf
@@ -56,7 +56,7 @@ export default class Rainfall implements ICanvasEffect {
|
||||
|
||||
public isRunning: boolean;
|
||||
|
||||
public start = async (canvas: HTMLCanvasElement, timeout = 3000) => {
|
||||
public start = async (canvas: HTMLCanvasElement, timeout = 3000): Promise<void> => {
|
||||
if (!canvas) {
|
||||
return;
|
||||
}
|
||||
@@ -73,7 +73,7 @@ export default class Rainfall implements ICanvasEffect {
|
||||
}
|
||||
};
|
||||
|
||||
public stop = async () => {
|
||||
public stop = async (): Promise<void> => {
|
||||
this.isRunning = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user