expression is typed as any. You can customize the type by specifying the JSX.Element interface. However, it is not possible to retrieve type information about the element, attributes or children of the JSX from this interface. It is a black box. 出典元:TypeScript - The JSX function return type この前提とどう戦っていくか