Pexidious
Pexidious
TTCTheo's Typesafe Cult
Created by Pexidious on 11/16/2023 in #questions
Need help with inferring a higher-order component
Asked this question in a different Discord group and found out that this can only be done by adding an extra curried function. When the following GitHub issue gets resolved, which has been open since 2018, the second type helper can probably be inferred: https://github.com/microsoft/TypeScript/issues/26242
5 replies
TTCTheo's Typesafe Cult
Created by Pexidious on 10/19/2022 in #questions
Dynamically rendering a component using an object
Also updated the CodeSandbox for everyone not sure how to fix it themselves
3 replies
TTCTheo's Typesafe Cult
Created by Pexidious on 10/19/2022 in #questions
Dynamically rendering a component using an object
Figured it out from the TS Discord 🙌
3 replies