posted an article about unwrapping Reacts JSX.Intr...
# orm-help
a
posted an article about unwrapping Reacts JSX.IntrinsicElements interface for global use/absolute prop control with 0 imports required. but spent the first third of it using a prisma seeding example from one of my builds as a way to ease into inferring types; how to infer the return type of a massive async seeding function with generics then use that to type props passed/returned in the function that's instantiating the giant via CLI-driven activation if you're a react/nextjs user ReactUnwrapped<JSX.IntrinsicElementsMapped> (in a nutshell) might be useful https://dev.to/asross311/unwrapping-reacts-core-access-jsxintrinsicelement-props-globally-no-imports-required-ckm
👍 2