This open-source tool explore different possible scenarios for whole life cycle greenhouse gas emissions of buildings across Europe.
More info below! 🧵👇
This open-source tool explore different possible scenarios for whole life cycle greenhouse gas emissions of buildings across Europe.
More info below! 🧵👇
Not all sites support it, though. Not sure how it decides. 🤔
Not all sites support it, though. Not sure how it decides. 🤔
@mattpocock.com I just took your quiz, how did I do? 👀 What's the average score? I'm curious to know where I stand!
The quiz 👉 totaltypescript.com/wizard-quiz
@mattpocock.com I just took your quiz, how did I do? 👀 What's the average score? I'm curious to know where I stand!
The quiz 👉 totaltypescript.com/wizard-quiz
Turns out my images were not loaded yet when the browser calculated where to scroll to.
To fix this you need to provide a width and height to your img tag to prevent reflows and repaints
Turns out my images were not loaded yet when the browser calculated where to scroll to.
To fix this you need to provide a width and height to your img tag to prevent reflows and repaints
No TypeScript warning, no runtime error, now it’s just you and your half-empty Line graph.
Should be fixed in v3 🤞
demo here: codesandbox.io/p/sandbox/xy...
#recharts
No TypeScript warning, no runtime error, now it’s just you and your half-empty Line graph.
Should be fixed in v3 🤞
demo here: codesandbox.io/p/sandbox/xy...
#recharts
Shoutout to my Copilot free plan for making today’s challenge beatable 😂
#spoiler
Shoutout to my Copilot free plan for making today’s challenge beatable 😂
#spoiler
With NoInfer, we basically say: don't use the defaultColor variable to infer the Color type.
📽️ Learn NoInfer: youtube.com/watch?v=mkuChhuHO50
Dominik's repo: github.com/TkDodo/advent-of-typescript/blob/main/2024/18.ts
With NoInfer, we basically say: don't use the defaultColor variable to infer the Color type.
📽️ Learn NoInfer: youtube.com/watch?v=mkuChhuHO50
Dominik's repo: github.com/TkDodo/advent-of-typescript/blob/main/2024/18.ts
TIL how to make intrinsic types:
📽️ youtube.com/watch?v=B3LDiHl7pBI
Not gonna lie, I had to take a little peek at the answer to get unstuck.. Don’t judge me! 🙈
#spoiler
TIL how to make intrinsic types:
📽️ youtube.com/watch?v=B3LDiHl7pBI
Not gonna lie, I had to take a little peek at the answer to get unstuck.. Don’t judge me! 🙈
#spoiler
TIL Partial<['1', '2', '3']> preserves the order of elements in the array, meaning we can't assign ['2', '3'] to it. Super useful for creating the "Magic Curry"
Solution from @tkdodo.eu below 👇
github.com/TkDodo/adven...
#spoiler
TIL Partial<['1', '2', '3']> preserves the order of elements in the array, meaning we can't assign ['2', '3'] to it. Super useful for creating the "Magic Curry"
Solution from @tkdodo.eu below 👇
github.com/TkDodo/adven...
#spoiler
looks like the backend section is missing its label 😬
2024.stateofjs.com/en-US/other-...
looks like the backend section is missing its label 😬
2024.stateofjs.com/en-US/other-...
If you’ve got a more elegant solution, I’d love to see it!
#spoiler
If you’ve got a more elegant solution, I’d love to see it!
#spoiler
It allows you to give a meaningful type name to a variable typed as "string"
Now every time I see EmailAddress, I know it is an email for sure
📽️ Source video: www.youtube.com/watch?v=rpw5...
It allows you to give a meaningful type name to a variable typed as "string"
Now every time I see EmailAddress, I know it is an email for sure
📽️ Source video: www.youtube.com/watch?v=rpw5...
TIL about the in and out keywords in TypeScript!
👇This video cleared up co/contra/bi/in-variant types for me and made me discover the in/out keywords
🎥 www.youtube.com/watch?v=bWF0...
The author: x.com/andrew8088
#spoiler
TIL about the in and out keywords in TypeScript!
👇This video cleared up co/contra/bi/in-variant types for me and made me discover the in/out keywords
🎥 www.youtube.com/watch?v=bWF0...
The author: x.com/andrew8088
#spoiler
The "Names" type with 300k+ values made my PC cough
Just hovering over the type took a solid 20 seconds to display the annotation 🫠
#spoiler #typescript
The "Names" type with 300k+ values made my PC cough
Just hovering over the type took a solid 20 seconds to display the annotation 🫠
#spoiler #typescript
TIL about the left shift operator (<<) and hope I will never use it again lmao
#spoiler
TIL about the left shift operator (<<) and hope I will never use it again lmao
#spoiler
TIL how to declare types for untyped third-party packages
#spoiler
TIL how to declare types for untyped third-party packages
#spoiler
I learned how to type env variables here:
www.totaltypescript.com/how-to-stron...
#spoiler
I learned how to type env variables here:
www.totaltypescript.com/how-to-stron...
#spoiler
To be honest, I don’t use const like this very often.
Spent way more time on it than I’d like to admit 😬
#spoiler
adventofts.com/events/2024/7
To be honest, I don’t use const like this very often.
Spent way more time on it than I’d like to admit 😬
#spoiler
adventofts.com/events/2024/7
adventofts.com/events/2024/6
Careful, #spoiler!
To avoid seeing the spoiler you can subscribe to spoiler droid here:
bsky.app/profile/did:...
adventofts.com/events/2024/6
Careful, #spoiler!
To avoid seeing the spoiler you can subscribe to spoiler droid here:
bsky.app/profile/did:...
ReferenceError: can't access lexical declaration myVar before initialization
...with no ESLint or TypeScript errors.
Turns out I had circular dependencies
I used Madge to spot them:
madge ./src/main.tsx -c
You can also generate graphs!
Madge repo: github.com/pahen/madge
ReferenceError: can't access lexical declaration myVar before initialization
...with no ESLint or TypeScript errors.
Turns out I had circular dependencies
I used Madge to spot them:
madge ./src/main.tsx -c
You can also generate graphs!
Madge repo: github.com/pahen/madge