Javascript – Infer React child props in TypeScript interface
Is it possible to infer the props of the first child element and enforce them in TypeScript? I can get it close, but it begins to fail with generics, and I haven't been able to infer the type. I'm trying…