Andrea Simone Costa
@jfet97.bsky.social
📤 20
📥 42
📝 29
Just some TypeScript here
https://andreasimonecosta.dev/posts/
I've completed Parser Combinators: The Final Frontier - Advent of TypeScript 2024
adventofts.com/events/2024/24
Fuck "Type instantiation is excessively deep and possibly infinite", I wanna non termination
loading . . .
Advent of TypeScript
Advent of TypeScript is a month-long event running from December 1 to Christmas, featuring daily TypeScript challenges. Participants can test their skills, climb the leaderboard, and engage with the T...
https://adventofts.com/events/2024/24
10 months ago
0
0
0
I've completed Magic Curry Mind Control Inception - Advent of TypeScript 2024
adventofts.com/events/2024/16
Special cased for t4 😅 with a powerful T extends [string, number, boolean] XD
loading . . .
Advent of TypeScript
Advent of TypeScript is a month-long event running from December 1 to Christmas, featuring daily TypeScript challenges. Participants can test their skills, climb the leaderboard, and engage with the T...
https://adventofts.com/events/2024/16
10 months ago
0
2
0
I've completed Jet Fuel Pricing - Advent of TypeScript 2024
adventofts.com/events/2024/15
loading . . .
Advent of TypeScript
Advent of TypeScript is a month-long event running from December 1 to Christmas, featuring daily TypeScript challenges. Participants can test their skills, climb the leaderboard, and engage with the T...
https://adventofts.com/events/2024/15
10 months ago
0
1
0
#AdventOfTypescript
#AdventOfTS
Day 13
10 months ago
0
1
0
I've completed 🎩Bernard's Long List Of Names - Advent of TypeScript 2024
adventofts.com/events/2024/12
10 months ago
0
1
0
reposted by
Andrea Simone Costa
Mateusz Burzyński
10 months ago
nice experimentation by
@jfet97.bsky.social
going on:
github.com/microsoft/Ty...
loading . . .
Let primitive types discriminate a union of objects by jfet97 · Pull Request #60718 · microsoft/TypeScript
Main goal The ultimate goal of this PR is to allow primitive types in object unions to act as discriminants, even when there are no unit/literal types involved. Some examples of this are as follows...
https://github.com/microsoft/TypeScript/pull/60718
2
8
1
#typescript
The next TypeScript compiler update will be exciting! PR #56941 by
@gabritto.bsky.social
improves support for conditional and indexed access types as return types, enabling proper typing for functions like the one in the snippet without clunky hacks or dubious overloads.
10 months ago
1
6
1
Hi there
@gabritto.bsky.social
! I'm playing with your PR and I got a couple of non working cases (and some combinations), but I can't find the reason in the description of the PR. Would you mind to have a look? Thanks!
www.typescriptlang.org/play/?ts=5.8...
loading . . .
TS Playground - An online editor for exploring TypeScript and JavaScript
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
https://www.typescriptlang.org/play/?ts=5.8.0-dev.20241129#code/GYVwdgxgLglg9mABAQwMpQE4zAcwPIYCCAciALYBGAphngNYA8AKolQB5RVgAmAzogG8UALkS9M2HIgC+iAD6CRicNyrBsVbjIB8ACgAOyDMjKimASjOsOXPouSjxWXDMQB+MRNyiwVAG40ggBQiIgwwIi6UACe+lRwEYbGZAB0yIgAvFmIAEROkjnmwaGhGFRQIBhIeXBkVJ7OODkA3CEybVAAFhhwAO6IAIwATADMQdJBQaCQsAgo6I0EJOTUGMRwA8zWnDz8Qg4NkvLKPGoaWtJ6SSZmlogs7Dt2+45eUgoqZ74X7ocuPv5AgI2uFIjE4glENdUukshlcvlcDl5ApwfFEkYTGlMtkcp91N9CsUSmUKlUEbV6oimq1QhNQl0ev1hmMJlNwNB4Eg0G8lqRKDR1kMto9bHslNTXAoXogwCtApcDJjTPc7g8bLt7K9Gq4PJKAQEMMTQVFYuiocrsXCEW8icCSohSZVqrxKX8aW16YhGX1BqNxpNJkA
10 months ago
1
0
0
#typescript
Immediate access in the realm of values is not deferred, but `to` has a type param as type so TS can only resort to its constraint. OTOH in the realm of types `T["property"]` stays deferred, so indirect access is well typed.
@andarist.bsky.social
highlight of the day from our chat
11 months ago
1
2
0
reposted by
Andrea Simone Costa
Mateusz Burzyński
11 months ago
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!
loading . . .
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 ...
https://github.com/microsoft/TypeScript/pull/56941
6
73
17
reposted by
Andrea Simone Costa
David Blass
11 months ago
I'm looking for TypeScript consulting to support my full-time open-source work on
@arktype.io
! If your team struggles with... 🧩 Writing complex types to optimize DX ☠️ tsserver lag in editor 🧪 Type testing or benchmarking I can help! If not, retweets also really help💖
1
9
2
you reached the end!!
feeds!
log in