Typescript, Generics, Polymorphism.
course we can use optional chaining here but it's not very cool as it provides no type safety 😢 */ console.log("name", result.data?.name); Here we could omit explicit type binding during the call of the function. This will make TS unable to guess what type there should be, so it infers it to “any”.