We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8980f9 commit c65da79Copy full SHA for c65da79
packages/doxdox-renderer-pdf/eslint.config.js
@@ -11,7 +11,10 @@ export default [
11
{
12
files: ['**/*.ts', '**/*.js'],
13
languageOptions: {
14
- parser: typescriptParser
+ parser: typescriptParser,
15
+ globals: {
16
+ Buffer: 'readonly'
17
+ }
18
},
19
plugins: {
20
typescriptPlugin: typescriptPlugin
packages/doxdox-renderer-pdf/src/index.ts
@@ -179,5 +179,5 @@ export default async (doc: Doc): Promise<Buffer> => {
179
180
await browser.close();
181
182
- return pdf;
+ return Buffer.from(pdf.buffer);
183
};
0 commit comments