My component PageViewer
has props defined like this:
props: {
page: DocumentPageDto,
},
I'm using it in another Vue component like this:
<div><PageViewer :page="selectedPage"></PageViewer></div>
The value of selectedPage
comes from an API response, which results in this warning in the console:
Invalid prop: type check failed for prop "page". Expected DocumentPageDto, got Object
I understand that the API response is just a standard Object
. I'm wondering if there is a way in Vue to handle this without changing the prop declaration to Object
for intellisense.
Is there a way in Vue to manage this issue and possibly ignore the type check?
Thank you