const React = require('react'); type Props = Readonly<{bar: string, baz: number}>; declare const TestComponent: React.ComponentType; const props: Props = {bar: '', baz: 0}; ; //breaks ({...props}) as Props; //works