When trying to define the types for a TramOneComponent, we get an error that the types are incompatible.
Type '({ groupInfo }: pageProps) => TramOneElement' is not assignable to type '(props: { [attribute: string]: any; }, children: Element) => TramOneElement'.
Types of parameters '__0' and 'props' are incompatible.
Property 'groupInfo' is missing in type '{ [attribute: string]: any; }' but required in type 'pageProps'.
I'm not exactly sure how we solve this - we still want to generically expect something that looks like a key-value pair, but this is clearly too restrictive.
Summary
When trying to define the types for a TramOneComponent, we get an error that the types are incompatible.
I'm not exactly sure how we solve this - we still want to generically expect something that looks like a key-value pair, but this is clearly too restrictive.