Skip to content

Commit

Permalink
fix: make third argument optional
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Jun 13, 2020
1 parent ce938d1 commit 18b75a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const mkDirSync = (dirPath: string): void => {
export const writeFileSync = (
filePath: string,
data: any,
options: fs.WriteFileOptions,
options?: fs.WriteFileOptions,
): void => {
mkDirSync(filePath);
fs.writeFileSync(filePath, data, options);
Expand Down

0 comments on commit 18b75a2

Please sign in to comment.