DEV Community

Discussion on: ⚡ Speed-up your web with Blurhash

talr98 profile image
TalR98 • Edited on

Excellent one.
Just as a note for good practice, You should've coded in your "Tiny Script" This way:

const fileSize = await new Promise<number>((resolve, reject) => {....}

So basically utilizing the generic TS feature..

meldiron profile image
Matej Bačo Author

Thanks, didn't know about that ❤️ Updated both article and Github repo.