Skip to content

Commit dc66523

Browse files
committed
Fix type-error
1 parent d2d224c commit dc66523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chromium.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export async function launchChromium(launchOptions?: Partial<LaunchOptions>) {
120120
}
121121

122122
export const loadFont = async (input: string) =>
123-
new Promise(async (resolve, reject) => {
123+
new Promise<void>(async (resolve, reject) => {
124124
const url = new URL(input);
125125
const output = path.join(AWS_FONT_DIR, url.pathname.split('/').pop()!);
126126
if (await promisify(fs.exists)(output)) {

0 commit comments

Comments
 (0)