Skip to content

Commit 4507bd0

Browse files
committed
refactor: specify Promise type in font loading logic
1 parent ca3503a commit 4507bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const {
194194

195195
// Use Font Face Observer pattern
196196
const fontLoadPromises = [
197-
new Promise(resolve => {
197+
new Promise<void>(resolve => {
198198
// Check if Inter font is loaded
199199
if (document.fonts) {
200200
document.fonts.ready.then(() => {

0 commit comments

Comments
 (0)