Skip to content

Commit

Permalink
chore: change SvgToPdfOptions type
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Nov 30, 2023
1 parent f0cf8bb commit 76e145e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/healthy-dodos-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@icona/types": patch
"@icona/generator": patch
"@icona/utils": patch
---

chore: change SvgToPdfOptions type
6 changes: 3 additions & 3 deletions packages/types/src/lib.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Config as SvgrConfig } from "@svgr/core";
import type { SVGtoPDFOptions } from "svg-to-pdfkit";
import type { SVGtoPDFOptions as LibSVGtoPDFOptions } from "svg-to-pdfkit";
import type { Config as SvgoConfig } from "svgo";

type PDFKitConfig = PDFKit.PDFDocumentOptions & {
Expand All @@ -26,10 +26,10 @@ type PDFKitConfig = PDFKit.PDFDocumentOptions & {
info?: PDFKit.PDFDocumentOptions["info"];
};

export interface SvgToPdfOptions extends SVGtoPDFOptions {
export type SvgToPdfOptions = {
x?: number;
y?: number;
}
} & LibSVGtoPDFOptions;
/**
* @param overwrite overwrite existing files in folder
* @param recreate rm -rf all files and generate new files in folder
Expand Down

0 comments on commit 76e145e

Please sign in to comment.