Hot tips are spicy lil' nuggets related to web development and tooling that I share on my twitter account. I've logged them here to make them easier to find.
Page 19 of 45
🔥 You can create a Type Guard in TypeScript by using the is keyword in a functions return type.
is
🔥 The difference between any and unknown in TypeScript:
any
unknown
🔥 Text Pastry is a super handy plugin for inserting incremental numbers at each cursor.
Available for VS Code, Sublime + more
🔥 TypeScript has a bunch of super handy commands for refactoring your codebase - made available in most editors
🔥 Quickly add all properties to a typed object in TypeScript with the ts-quickfixes extension
Using machine learning to detect a hotdog with typescript
I turned every 4,100 Benjamin Moore paint colours into CSS variables.
Copy + Paste from https://bm.wesbos.com
Using web assembly with a c based library to detect the QR codes.
I’m able to interface via JS!
Typescript gas price converter
🔥 This will save your butt: VS Code has a timeline feature that lets you revert and compare changes between git commits