Files
flatrender/server/nexrender.d.ts
T

14 lines
371 B
TypeScript

declare module "@nexrender/core" {
export interface NexrenderRenderOptions {
workPath?: string;
binary?: string;
skipCleanup?: boolean;
onProgress?: (job: { metadata?: Record<string, unknown> }, percent: number) => void;
}
export function render(
job: unknown,
options?: NexrenderRenderOptions
): Promise<string | { output?: string }>;
}