chore: add typescript definitions for custom types (#486)

This commit is contained in:
Andrew Mackrodt
2020-10-10 17:06:38 +01:00
committed by GitHub
parent 5c61333df0
commit 0cdf6657bf
8 changed files with 168 additions and 11 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import playerLib, {PlaySound} from 'play-sound';
import {config} from '../config';
import fs from 'fs';
import {logger} from '../logger';
import playerLib from 'play-sound';
let player: any;
let player: PlaySound;
if (config.notifications.playSound) {
player = playerLib();
@@ -11,7 +11,7 @@ if (config.notifications.playSound) {
if (player.player === null) {
logger.warn('✖ couldn\'t find sound player');
} else {
const playerName: string = player.player;
const playerName = player.player;
logger.info(`✔ sound player found: ${playerName}`);
}
}