Menu

#Extends

19 posts

Feed·
18 of 19 posts
0Read More

I got a decorator to type check the generic of the class it's on and I'm way too happy about it

#typescript#reddittypescript#code#l340#class

In my framework, every handler has to write its route twice. Once in the decorator because the runtime needs the string, and once in the generic because the types need it. @Route('ban') class Ban extends Handler {} // no errors. cool.…

15s
0Read More

How (and where) is “T extends U” in generics defined?

Or in other words: “can I please have a TypeScript 5/6/7 language spec?” ——- Using “extends” in a TS generic type-param constraint is straightforward to understand if you’re only concerned with Java/C#-style single inheritance for classes - and one can…

15s
DNA analysis identifies root-dwelling fungi as potential keystone species in forest microbial communities
📰
0Read More

DNA analysis identifies root-dwelling fungi as potential keystone species in forest microbial communities

#phys#science#ecosystem#beneath#forest

Beneath the forest floor extends a vast ecosystem where a diverse array of microorganisms inhabit soil and root systems. Here, fungi and bacteria play pivotal roles in processes such as nutrient cycling and carbon sequestration.…

15s
`infer` in Conditional Types: 5 Recipes That Aren't in the Handbook
🖼️
0Read More

`infer` in Conditional Types: 5 Recipes That Aren't in the Handbook

DEV Community·Gabriel Anhaia·6 months ago
#oMx0MsXM
#recipe#typescript#types#generics#type

Five infer recipes past the handbook: tuple last/head/tail, URL param extraction, overload-aware constructors, promise-chain resolution.

15s
Dart Sealed Classes Guide — Type-Safe State Management with Pattern Matching
🖼️
0Read More

Dart Sealed Classes Guide — Type-Safe State Management with Pattern Matching

DEV Community·kanta13jp1·7 months ago
#Ll7so5qS
#dart#flutter#webdev#indiedev#final

From Dev.to - dart: Dart Sealed Classes Guide — Type-Safe State Management with Pattern Matching

15s
Rep. Jason Crow calls Iran war "a fairly unmitigated disaster"
📰
0Read More

Rep. Jason Crow calls Iran war "a fairly unmitigated disaster"

www.cbsnews.com·CBS News·7 months ago
#A91xdK9J
#iran#republicans#donaldtrump#president#trump

As President Trump extends the ceasefire with Iran until "discussions are concluded," where is the war heading? Democratic Rep. Jason Crow of Colorado, a retired Army Ranger who sits on the U.S.…

15s
0Read More

Why Man Utd fans should be glad if Maguire extends stay

BBC News·8 months ago
#OXzFV0
#maguire#extends#englishlanguage

Harry Maguire has made 261 appearances and scored 17 goals for Manchester United since his £80m move from Leicester in August 2019 When Manchester United's squad arrived at Burnley for the first match of the post-Ruben Amorim era on 7 Ja...

15s