#typescript
Configure "Go to Definition" to Open TypeScript Source
2 min readLearn how to fix "Go to Definition" navigating to type declarations instead of source files in TypeScript projects.
TypeScript Tips: Safely Using includes With ReadonlyArrays
5 min readHow to use includes on ReadonlyArrays while retaining type safety and narrowing down the type.
Open-Ended Unions and Autocomplete With TypeScript
3 min readLet's see how to achieve an open-ended union in TypeScript to provide autocomplete on literal string unions.
Testing TypeScript Types: Part 2 (Advanced Solutions)
3 min readAdvanced solutions to test TypeScript types.
Testing TypeScript Types: Part 1
5 min readPreamble and early solution to start testing TypeScript types.
Properly type Object.keys and Object.entries
4 min readHave you ever noticed that Object.keys and Object.entries are a little bit tricky to work with in TypeScript? They won't return what you would expect. Here's how to properly type them.
Be Careful With JavaScript Default Parameters!
6 min readIn JavaScript and TypeScript, we often rely on default parameters to define optional parameters, but should we?
Wrapping Gatsby's <Link> with TypeScript
4 min readHow to properly wrap Gatsby's <Link> component while preserving GatsbyLinkProps type.