Closed tfs-tada closed 3 months ago
type Props = { data: {[K in `data-${string}`]: string } & { age: number }} const Component = (props: Props) => { return <div>{}</div>; } const user = { data: {"data-testid": "file", age: 10 }}; const a = <Component data={user.data} />;