render protocol by template

This commit is contained in:
Julian Krauser 2024-10-18 15:23:51 +02:00
parent da219eb5f4
commit 58213923e5
8 changed files with 950 additions and 3 deletions

27
src/types/pdf-creator-node.d.ts vendored Normal file
View file

@ -0,0 +1,27 @@
// types/pdf-creator-node.d.ts
declare module "pdf-creator-node" {
interface Document {
html: string;
data: any;
path: string;
type?: string;
}
interface Options {
format: string;
orientation: string;
border: string;
header?: {
height: string;
contents: string;
};
footer?: {
height: string;
contents: string | { [key: string]: string | number };
};
}
function create(document: Document, options: Options): Promise<any>;
export { create, Document, Options };
}