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 8cb9751 commit a575f39Copy full SHA for a575f39
src/config/utils.ts
@@ -30,7 +30,7 @@ export function attemptToReadFileData(filePath: string, encoding: fs.EncodingOpt
30
}
31
32
// Tries to read the file data decoded from TOML, returns null if unsuccessful
33
-export function attemptToReadTOMLData<T>(filePath: string, encoding: fs.EncodingOption): T | null {
+export function attemptToReadTOMLData<T>(filePath: string, encoding: fs.EncodingOption="utf-8"): T | null {
34
try {
35
const fileData = fs.readFileSync(filePath, encoding) as string;
36
0 commit comments