Skip to content

Commit 80f42e8

Browse files
update type
1 parent 1525b89 commit 80f42e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

types/write_svg.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export declare namespace SVGtoPDF {
5252

5353
/** function called to get color, making mapping to CMYK possible */
5454
colorCallback?: (
55-
color: RGBColor | CMYKColor,
55+
color?: RGBColor | CMYKColor,
5656
raw: string,
57-
) => RGBColor | CMYKColor;
57+
) => RGBColor | CMYKColor | undefined;
5858

5959
/** function called when there is a warning */
6060
warningCallback?: (warning: string, error?: unknown) => void;

0 commit comments

Comments
 (0)