
@NfNitLoop ("Cody C. #BLM") wrote:
#TIL: in #TypeScript you can change the return type of a function based on the value of its arguments. 🤯
https://github.com/MikaelPorttila/rss/blob/master/src/deserializer.ts#L191-L194
@NfNitLoop ("Cody C. #BLM") wrote:
#TIL: in #TypeScript you can change the return type of a function based on the value of its arguments. 🤯
https://github.com/MikaelPorttila/rss/blob/master/src/deserializer.ts#L191-L194