Skip to content

Commit

Permalink
chore: satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhaenisch committed Nov 6, 2020
1 parent d9d1dc8 commit 77e91cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/md-to-pdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const convertMdToPdf = async (
const [argKey, argValue] = arg as [string, string];
const key = argKey.slice(2).replace(/-/g, '_');

(config as { [key: string]: any })[key] = jsonArgs.has(argKey) ? JSON.parse(argValue) : argValue;
(config as Record<string, any>)[key] = jsonArgs.has(argKey) ? JSON.parse(argValue) : argValue;
}

// sanitize the margin in pdf_options
Expand Down

0 comments on commit 77e91cd

Please sign in to comment.