We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2d224c commit dc66523Copy full SHA for dc66523
src/chromium.ts
@@ -120,7 +120,7 @@ export async function launchChromium(launchOptions?: Partial<LaunchOptions>) {
120
}
121
122
export const loadFont = async (input: string) =>
123
- new Promise(async (resolve, reject) => {
+ new Promise<void>(async (resolve, reject) => {
124
const url = new URL(input);
125
const output = path.join(AWS_FONT_DIR, url.pathname.split('/').pop()!);
126
if (await promisify(fs.exists)(output)) {
0 commit comments