I am a full stack web developer, with a focus on frontend.
My main stack is Elm, Typescript, React, Svelte, and ofc node.js.
Freelance web development, with preference for Elm or react.
TLDR; Here's the code: type Handler = ((...args: any[]) => any) | string; function safeSetTimeout<F extends Handler>( handler: F, timeout?: number, ...args: F extends string ? any[] : Parameters<F extends string ? never : F> ) { retu...

How we got here Promises marked a huge turning point in async js, they enabled a new type of control flow that saved us from callback hell. But some people found that calling .then() multiple times was too much, too callbacky. Then after a while, we ...
