We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88874b9 commit 5c08a4bCopy full SHA for 5c08a4b
src/node/settings.ts
@@ -17,7 +17,7 @@ export class SettingsProvider<T> {
17
public async read(): Promise<T> {
18
try {
19
const raw = (await fs.readFile(this.settingsPath, "utf8")).trim()
20
- return raw ? JSON.parse(raw) : {}
+ return raw ? JSON.parse(raw) : {} as T
21
} catch (error: any) {
22
if (error.code !== "ENOENT") {
23
logger.warn(error.message)
0 commit comments