X 归档 2023-01-09
#genuary day 8: “signed distance functions” // cosmic blast
#genuary 第 8 天:"signed distance functions" // 宇宙爆发
TS-Pattern's inference just got a bit smarter!
✅ Unreachable branches do not type-check anymore
✅ `.with ` and `.otherwise` inherit type narrowing from previous branches
✅ ~15% type-checking performance improvement
Release note 👉 https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2
✅ Unreachable branches do not type-check anymore
✅ `.with ` and `.otherwise` inherit type narrowing from previous branches
✅ ~15% type-checking performance improvement
Release note 👉 https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2
TS-Pattern 的类型推断变得更聪明了一点!
✅ 不可达的分支不再能通过类型检查
✅ `.with ` 和 `.otherwise` 会继承前面分支的类型收窄
✅ 类型检查性能提升约 15%
发布说明 👉 https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2
✅ 不可达的分支不再能通过类型检查
✅ `.with ` 和 `.otherwise` 会继承前面分支的类型收窄
✅ 类型检查性能提升约 15%
发布说明 👉 https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2
Civet (@civetlang) is a new alternative syntax for TypeScript
Init flame war about syntax preferences:
Init flame war about syntax preferences:
Civet(@civetlang)是一种全新的 TypeScript 替代语法
发起一场关于语法偏好的骂战:
发起一场关于语法偏好的骂战:
trying out frosted glass on a @splinetool scene using splines react hook. they already have their own glass-like material but transmissionmaterial gets practically even. i love that it picks up other transmissive objects, meshphysicalmaterial never could.
https://codesandbox.io/s/glass-circles-copy-forked-ju368j?file=/src/App.js
https://codesandbox.io/s/glass-circles-copy-forked-ju368j?file=/src/App.js
在 @splinetool 场景里用 spline 的 react hook 尝试磨砂玻璃。它们自带类玻璃材质,但 transmissionmaterial 几乎能达到均匀一致的效果。我最喜欢的是它能捕捉到其他透射物体,meshphysicalmaterial 从来都做不到。
https://codesandbox.io/s/glass-circles-copy-forked-ju368j?file=/src/App.js
https://codesandbox.io/s/glass-circles-copy-forked-ju368j?file=/src/App.js








