Typescript Lifehack: TODO Type #typescript #typescriptdevelopment #typescripttutorial #webdev

preview_player
Показать описание
Use this TypeScript TODO type instead of any!

📣 Follow Coding in Flow on social media:
Рекомендации по теме
Комментарии
Автор

Might as well call it TechDebt instead of Todo.
The longer you do this the more difficult it will be in the future to use an actual type.

florianbopp
Автор

If you must use `any` hopefully your linter setting are such that it will warn you about it. If it's really something you want a TODO for, just write a TODO comment.

forcommenting
Автор

I would like you to do angular tutorials

fantacomics
Автор

I've been trying to implement real-time chats in an app I'm developing and I can't figure out what type it wants. It tells me, but it has props that don't match what actually gets returned. I've been looking everywhere for this. I'm using supabase real-time for my app. Anyone have any ideas where I can to see docs for this?

cadillacjack
Автор

Typescript cheats with it's own past

ravi_sorathiya
Автор

Later i search and replace any from all places just like you do with your todo, so what's the point same thing with an extra step

aatifkhan
Автор

I would rather find out what the types will be, than adding any.

BlurryBit
Автор

I don't think, it would be helpful, if you are going to use the same TODO type for every type of component and functions, for which you are not certain of, it will be problem later while updating the TODo, it's not going to be same for every component or functions, like in this case for a Button and if used again for let's say Input

devsami
Автор

Wait sorry I mostly work in Rust so I’m confused. Is that a joke or are you being serious? Can you really get around the type checker like that? Isn’t that …. bad?

FreddyRangel
Автор

Why would you not know the type of the thing you are coding? does not make any sense and is just lazy

robgreen
Автор

stop being lazy and just type the thing and do everyone a favor.

sagarroy
join shbcf.ru