From 76e145ee93f4bfac78503e47072cf0de4f12adb0 Mon Sep 17 00:00:00 2001 From: junghyeonsu Date: Thu, 30 Nov 2023 16:49:49 +0900 Subject: [PATCH] chore: change SvgToPdfOptions type --- .changeset/healthy-dodos-raise.md | 7 +++++++ packages/types/src/lib.d.ts | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .changeset/healthy-dodos-raise.md 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