Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschubek committed Mar 13, 2023
1 parent 63a6062 commit e96d39e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ yargs(hideBin(process.argv))
});
// .parserConfiguration({ "unknown-options-as-args": true });
},
(argv) => {
(argv: any) => {
// default log
const log = (message?: any, ...optionalParams: any[]) => {
if (!argv.quiet) console.log(message, ...optionalParams);
Expand Down Expand Up @@ -280,7 +280,7 @@ yargs(hideBin(process.argv))
}

// raw file data
let data = fs.readFileSync(argv.file, "utf-8").toString("utf-8");
let data = fs.readFileSync(argv.file, "utf-8").toString();

const blockMatches = data.matchAll(/(\$\[(.*?)\]\$)([\w\W]*?)(\$\[end\]\$)/g) || [];

Expand Down

0 comments on commit e96d39e

Please sign in to comment.