fix(core): update

This commit is contained in:
2019-05-28 23:57:50 +02:00
parent 12d1a73793
commit cc6bc209e8
13 changed files with 87 additions and 39 deletions

View File

@ -1,8 +1,8 @@
// compatibility
declare global {
interface Element { }
interface Node { }
interface NodeListOf<TNode = Node> { }
interface Element {}
interface Node {}
interface NodeListOf<TNode = Node> {}
}
// normal

View File

@ -1 +0,0 @@
import * as plugins from './smartpdf.plugins';

View File

@ -34,14 +34,14 @@ export class SmartPdf {
});
}
async close () {
async close() {
const done = plugins.smartpromise.defer<void>();
this.htmlServerInstance.close(() => {
done.resolve();
});
await this.headlessBrowser.close();
await done.promise;
}
}
/**
* returns a pdf for a given html string;