Replying to @trashh_dev @typeheroapp
i generated this share link in the app but its broken when i try to open it - typehero.dev/challenge/day-1…
Replying to @mattpocockuk
@mattpocockuk I really loved the `Prettify` type you shared the other week. With the help of GPT4 i came up with a version that applies itself recursively that seems to work really well - I thought you might like it
Im posting a link to a playground example below
#typescript
Replying to @trashh_dev
it is - a func like this helps in a lot of situations
Replying to @mattpocockuk
@mattpocockuk can you help me understand why the default argument here is breaking the type signature of this function?
heres a @codesandbox: codesandbox.io/s/dreamy-fore…
#typescript
Replying to @mattpocockuk
@mattpocockuk Could you help me understand the problem here? The function works as expected if you call it with both args. Assigning a default argument is causing a TS error though
here's a code sandbox codesandbox.io/s/dreamy-fore…









