Replace any types to more strict types

This commit is contained in:
Christer Warén
2023-06-06 04:58:01 +03:00
parent bc238d919d
commit 3686cd1b0e
7 changed files with 29 additions and 27 deletions

View File

@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';
export default class {
map: Map<any, any>;
map: Map<string, any>;
constructor() {
this.map = new Map();
this.loadData();
@ -49,7 +49,7 @@ export default class {
this.saveEntry(id, newData);
}
loadEntry(id: any){
loadEntry(id: string){
try {
const json = require(`../../../datastore/` + id + '.json');
this.map.set(id, json);