UNPKG

pdf-to-img

Version:

📃📸 Converts PDFs to images in nodejs

13 lines (12 loc) • 354 B
import type Canvas from "canvas"; type Factory = { canvas: Canvas.Canvas | null; context: Canvas.CanvasRenderingContext2D | null; }; type NonNullableFactory = { [K in keyof Factory]: NonNullable<Factory[K]>; }; export interface CanvasFactory { create(width: number, height: number, transparent: boolean): NonNullableFactory; } export {};