Skip to content

Commit f55c529

Browse files
committed
Fix return type of readJsonFile()
1 parent 901dad6 commit f55c529

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/util.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ export const createJsonFile = async (filename: string, content: any) => {
4646
await fs.writeFile(filePath, JSON.stringify(content, null, 2), 'utf8');
4747
};
4848

49-
// @ts-expect-error: Accept any JSON file
50-
export const readJsonFile = async (filename: string): any => {
49+
export const readJsonFile = async (filename: string): Promise<any> => {
5150
const filePath = `${homedir}${configPath}${filename}.json`;
5251
const file = await fs.readFile(filePath, 'utf8');
5352
return JSON.parse(file);

0 commit comments

Comments
 (0)