mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types for html5-to-pdf * Add typescript version * Update tsconfig * Fix lint errors * Fix tests
10 lines
424 B
TypeScript
10 lines
424 B
TypeScript
import * as HTML5ToPDF from "html5-to-pdf";
|
|
|
|
const options = { inputBody: "<html><body>Hello World</body></html>" };
|
|
const converter = new HTML5ToPDF(options);
|
|
converter.parseOptions(options); // $ExpectType ParsedOptions
|
|
converter.build(); // $ExpectType Promise<Buffer>
|
|
converter.includeAssets(); // $ExpectType Promise<void>
|
|
converter.start(); // $ExpectType Promise<Page>
|
|
converter.close(); // $ExpectType Promise<void>
|