Skip to content

Commit

Permalink
Better typings for the svg thing
Browse files Browse the repository at this point in the history
  • Loading branch information
gausie committed Nov 17, 2023
1 parent 83fd462 commit 90a84b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"node-html-parser": "^6.1.11",
"otplib": "^12.0.1",
"pretty-ms": "^8.0.0",
"puppeteer": "^13.7.0",
"serialize-error": "^11.0.2",
"sharp": "^0.32.6",
"ts-dedent": "^2.2.0",
Expand Down
4 changes: 3 additions & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
declare module "convert-svg-to-png" {
import { LaunchOptions } from "puppeteer";

type Options = {
allowDeprecatedAttributes: boolean;
background: string;
baseFile: string;
baseUrl: string;
height: number | string;
puppeteer: object;
puppeteer: LaunchOptions;
rounding: "ceil" | "floor" | "round";
scale: number;
width: number | string;
Expand Down

0 comments on commit 90a84b3

Please sign in to comment.