kabir3266
kabir3266
TTCTheo's Typesafe Cult
Created by kabir3266 on 7/21/2024 in #questions
SVG brand logo website
Hey does anyone know the website that theo uses to get all brand logo svgs? Thanks
4 replies
TTCTheo's Typesafe Cult
Created by kabir3266 on 2/15/2024 in #questions
How to watch the latest stream
Hi, just noticed the stream from last night was not uploaded to youtube in StreamVOD section under playlists. Also the stream is only available to subscribers on twitch. Just wondering if this is a permanent change or if there is any other way to watch the full stream? thanks
4 replies
TTCTheo's Typesafe Cult
Created by kabir3266 on 12/10/2022 in #questions
Can someone help explain this code from the recent 'Dont migrate to tRPC' stream
On the stream at around the 2hr 07min mark Theo writes the following code: const sendTweetToDiscord = async ( tweet: NonNullable< inferAsyncReturnType<typeof getRecentTrashTweets>["data"] >[number] ) => { ... other code }; I am new to typescript so i am trying to understand whats going on here. From what i understand we are getting the return type of getRecentTrashTweets, then accessing the data property which is of type number, but because the number could also be undefined we use NonNullable to explicitly state that it will always be a number and not undefined. Is this correct? Thanks in advance
16 replies