Timo Santi
banner
diginikkari.bsky.social
Timo Santi
@diginikkari.bsky.social
Code crafter
Reposted by Timo Santi
But with AI, it's harder to know whether an incorrect output comes from bad inputs or just bad AI.

Is the instrument broken, or do I just have poor technique?
November 10, 2024 at 8:17 AM
Reposted by Timo Santi
Been working on some new color related web components lately.

One of the first is a color wheel that supports OKLCH.

It uses Color.js for color manipulation, d3-shape to calculate the pie arcs, and Lit for the reactive custom element and DOM creation.

#webcomponents
November 8, 2024 at 11:45 PM
Reposted by Timo Santi
I'll remember the world before and after this PR: github.com/microsoft/Ty...
The new era of conditional types checking is coming in TypeScript 5.8!
Narrow generic conditional and indexed access return types when checking return statements by gabritto · Pull Request #56941 · microsoft/TypeScript
Fixes #33912. Fixes #33014. Motivation Sometimes we want to write functions whose return type is picked between different options, depending on the type of a parameter. For instance: declare const ...
github.com
November 6, 2024 at 9:23 AM