Snippets
A collection of solutions to small problems I've faced in the past. They're all copy-paste ready 😉
DistributiveOmit
Custom omit type that omits a property from all members, preserving union types.
NPM - Set version to latest
How to set a published package version to latest
Playwright - Clipboard
How to do copy and paste with Playwright
Union to Intersection
Convert union to intersection types
useEffectRef
Perform disposable side-effects when an element's node is connected.
useInterval
A react-friendly alternative to window.setInterval