Skip to content

SudoSOS Back-end API / internal/pdf / HtmlGenerator

Type Alias: HtmlGenerator()<P> ​

ts
type HtmlGenerator<P> = (options) => string;

Type alias for a function that generates HTML from a data object.

Type Parameters ​

Type Parameter
P

Parameters ​

ParameterTypeDescription
optionsPThe data to be used in the HTML template.

Returns ​

string

The generated HTML as a string.