X 归档 2023-06-24
By far the strangest TypeScript trick I've ever come across is the Loose Autocomplete trick.
No idea who discovered this, but it's become widely used by OSS wizards.
It's now even used by React's types to type attributes like aria-role.
No idea who discovered this, but it's become widely used by OSS wizards.
It's now even used by React's types to type attributes like aria-role.
我迄今见过最奇怪的 TypeScript 技巧,当属 Loose Autocomplete(宽松自动补全)技巧。
不知道是谁发现的,但它已被 OSS 高手们广泛使用。
现在连 React 的类型定义都用它来给 aria-role 这类属性做类型。
不知道是谁发现的,但它已被 OSS 高手们广泛使用。
现在连 React 的类型定义都用它来给 aria-role 这类属性做类型。
In Angular 16.1, we've added a new development server option: forceEsbuild.
When enabled, `ng serve` will use esbuild/Vite with the build target options!
Note: you can continue to use default Webpack-based builder for builds (ng build) if you choose.
When enabled, `ng serve` will use esbuild/Vite with the build target options!
Note: you can continue to use default Webpack-based builder for builds (ng build) if you choose.
Angular 16.1 新增了一个开发服务器选项:forceEsbuild。
启用后,`ng serve` 将使用带构建目标选项的 esbuild/Vite!
注意:如果你愿意,构建(ng build)时仍可继续使用默认的基于 Webpack 的 builder。
启用后,`ng serve` 将使用带构建目标选项的 esbuild/Vite!
注意:如果你愿意,构建(ng build)时仍可继续使用默认的基于 Webpack 的 builder。
The upcoming Picture-in-Picture API that @googlechrome is pushing is soo promising! 🤩
@nuxt_js DevTools will be able to pop up as a separate window soon!
@nuxt_js DevTools will be able to pop up as a separate window soon!
@googlechrome 力推的 Picture-in-Picture API 前景太可期了!🤩
@nuxt_js DevTools 很快就能以独立窗口弹出了!
@nuxt_js DevTools 很快就能以独立窗口弹出了!
Example button: 😅
You can see it, right lol?
ps. Thanks to https://www.figma.com/blog/desperately-seeking-squircles/ for absolutely stunning research on it!
And to https://figma-squircle.vercel.app/ for implementing the algorithm.
You can see it, right lol?
ps. Thanks to https://www.figma.com/blog/desperately-seeking-squircles/ for absolutely stunning research on it!
And to https://figma-squircle.vercel.app/ for implementing the algorithm.
示例按钮:😅
能看出来区别吧,哈哈?
ps. 感谢 https://www.figma.com/blog/desperately-seeking-squircles/ 在这方面做的超赞研究!
也感谢 https://figma-squircle.vercel.app/ 实现了这个算法。
能看出来区别吧,哈哈?
ps. 感谢 https://www.figma.com/blog/desperately-seeking-squircles/ 在这方面做的超赞研究!
也感谢 https://figma-squircle.vercel.app/ 实现了这个算法。






