Похожие чаты

Trust me, I'm an engineer What the fuck did just happen

here?!

17 ответов

24 просмотра

If i was in the TS team, i'd stop anything I am working on right now and work on error messages, it's so frustrating.

Thomas
But they're already so great

why not expected type X but got Y?

Ghazwan Aliesh
screenshot why not expected type X but got Y?

Argument of type X is not assignable to type Y

Ghazwan Aliesh
screenshot why not expected type X but got Y?

this is repeating the same error message in many lines.

Ghazwan Aliesh
screenshot why not expected type X but got Y?

Notice how it removes | undefined in the latter lines

Thomas
Notice how it removes | undefined in the latter li...

if they had removed the last two lines, how would that make the error message less informative?

Ghazwan Aliesh
screenshot why not expected type X but got Y?

You would just see ICurrentUser | undefined vs IGraphQLCurrencyTypes | undefined And you'd say "what the fuck? ICurrentUser is for sure compatible with IGraphCurrencyTypes, I'm sure they are, silly TypeScript"

Ghazwan Aliesh
screenshot why not expected type X but got Y?

But at the bottom you can see that IGraphQLCurrencyTypes is actually some kind of Enum, and ICurrentUser is an interface

Thomas
You would just see ICurrentUser | undefined vs IGr...

i can see clearly that IcurrentUser isn't IGQLcurrency

Thomas
How?

they have different names, and they caused error, this means they don't match.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта