DEV Community

Discussion on: ⚡ Speed-up your web with Blurhash

Collapse
 
talr98 profile image
Tal Rofe • Edited

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..

Collapse
 
meldiron profile image
Matej Bačo

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