// @strictNullChecks: true // @noImplicitAny: true interface Component

{ props: Readonly

& Readonly<{ children?: {} }>; } interface Props { children?: (items: {x: number}) => void } declare function f(i: Component): void; f({ props: { children: (({ x }) => { }) } });