typescript: Add types to node-json-db variables.

This adds JsonDB type to db variables we use, which were
previously any due to issue with node-json-db not specifying
the types field in package.json.
This commit is contained in:
Priyank Patel
2019-06-20 17:19:48 -04:00
committed by Akash Nimare
parent cec2b3136d
commit 4412f60435
4 changed files with 4 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ let instance: null | DomainUtil = null;
const defaultIconUrl = '../renderer/img/icon.png';
class DomainUtil {
db: any;
db: JsonDB;
constructor() {
if (instance) {
return instance;