Typescript does not recognize object prop type

Screenshot from 2022-01-07 18-39-33
i am passing a string data as prop
Screenshot from 2022-01-07 18-40-52
here i defined the prop type as boolean inside an object

but typescript doesn’t show the error.