We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1525b89 commit 80f42e8Copy full SHA for 80f42e8
1 file changed
types/write_svg.d.ts
@@ -52,9 +52,9 @@ export declare namespace SVGtoPDF {
52
53
/** function called to get color, making mapping to CMYK possible */
54
colorCallback?: (
55
- color: RGBColor | CMYKColor,
+ color?: RGBColor | CMYKColor,
56
raw: string,
57
- ) => RGBColor | CMYKColor;
+ ) => RGBColor | CMYKColor | undefined;
58
59
/** function called when there is a warning */
60
warningCallback?: (warning: string, error?: unknown) => void;
0 commit comments