I recently discovered the magic `//^?` comment in @typescript playground. It automatically shows the resolved type of the line above it.
Great for live testing: write all your test cases, and see results as you type!
#TypeScript
If you frequently experiment with the HTTP Permissions-Policy header to test browser features, we've got a solution for you!
Our new prototype allows you to override the header locally, making your experiments even quicker.
Ready to try it out? 👉🏼 https://t.co/D6KDad6spg
Next version of @preactjs DevTools will display which exact hook caused a component to update. Previously it would just display "Hooks changed" and not say which of them did.
Fixing CSS doesn't have to be hard!
We're looking at the Styles pane in this #DevToolsTips to discover the root of CSS issues such as overridden, grayed out, and shorthand properties.
Watch the video → https://t.co/WsyCtKpi5o
Worried about fetch and JSON.parse returning any?
Drop these lines of code into any module and they'll return unknown across your entire project instead.
Look at that greeeen! CSS size container queries are supported in all stable browsers 😍
Learn about it: https://t.co/3Iao9PK3FD
Or check the demos in my lab: https://t.co/7osXOEAORE
CSS is getting more advanced every day:
- More powerful selectors
- Logical property values everywhere
- Container queries
- Preference queries
- More dynamic functions
✊ Join the revolution. Reduce your script payload by taking advantage of logical, modern CSS ✊
Chrome 111 beta is here. Features include new CSS color types and spaces, CSS trigonometric functions, and the View Transitions API.
https://t.co/RvXIiNWGqf
Storybook has long offered built-in TypeScript support. However, stories were not strongly typed.
You got great autocomplete features in story files, but no warnings about missing args.
Storybook 7 fixes that by combining CSF3 & TS satisfies operator »
https://t.co/eF1NJER00o
Interop 2023: continuing to improve the web for developers: https://t.co/UU0TKwDiGu
All major browser vendors and other stakeholders are again working together to solve the top browser compatibility issues
https://t.co/RYhf7HNatJ React Event Timelines shipped today 🚀
Event Timelines are like Redux DevTools for React events. You can now pause at any onClick and inspect the component's props and state.
TypeScript 5.0 Beta is now out to try! 🚀
Now with ES decorators, better modes for modules in Node & bundlers, new inference tools for library authors, JSDoc support - and last but not least, some great speed and size improvements!
https://t.co/oqFN2OfPIC
There are hundreds of ways to optimize web performance but which ones would actually be most effective?
🎯 Discover our top recommendations for improving Core Web Vitals in 2023
We think these are the biggest opportunities everyone should be looking at👇
https://t.co/Ab0E49R4sF
Just switched a project from plain fetch to ky.
I really like the result. 🔥
✅ MUCH less code
✅ Treats non-2xx status codes as errors (don't have to manually check response.ok 😀)
✅ Specify request timeout and retries with one line of code
More: https://t.co/2wIB8IG2Uy
⌨️ In case you missed it last week:
▶️ Watch @DavidKPiano and @farzad_yz livestream building a command palette using the Stately Studio and XState.
https://t.co/gvvfLJ4bZ6