diff --git a/.changeset/healthy-dodos-raise.md b/.changeset/healthy-dodos-raise.md new file mode 100644 index 0000000..30bb160 --- /dev/null +++ b/.changeset/healthy-dodos-raise.md @@ -0,0 +1,7 @@ +--- +"@icona/types": patch +"@icona/generator": patch +"@icona/utils": patch +--- + +chore: change SvgToPdfOptions type diff --git a/packages/types/src/lib.d.ts b/packages/types/src/lib.d.ts index 1958c38..0a78cf0 100644 --- a/packages/types/src/lib.d.ts +++ b/packages/types/src/lib.d.ts @@ -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 & { @@ -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