-
-
Notifications
You must be signed in to change notification settings - Fork 848
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7766328
commit b86458a
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
export const generate = async (): Promise<Uint8Array> => { | ||
return new Uint8Array([10, 20, 30, 40, 50]); | ||
import type { Template } from '@pdfme/common'; | ||
import { generate as pdfmeGenerate } from '@pdfme/generator'; | ||
|
||
export const generate = async ({ | ||
template, | ||
inputs, | ||
}: { | ||
template: Template; | ||
inputs: Record<string, string>[]; | ||
}): Promise<Uint8Array> => { | ||
return await pdfmeGenerate({ template: template, inputs }); | ||
}; |