render protocol by template
This commit is contained in:
parent
da219eb5f4
commit
58213923e5
8 changed files with 950 additions and 3 deletions
27
src/types/pdf-creator-node.d.ts
vendored
Normal file
27
src/types/pdf-creator-node.d.ts
vendored
Normal 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 };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue