Type safe props with `NuxtPage`
Hello,
My pages are structured something like this:
In
So my
all the files in
Now my question is, how can I make this type safe? I have enabled
Full type safety would be great but a way to silence this error would also work
My pages are structured something like this:
In
[id].vue I fetch a user, show a header and render a <NuxtPage> with the fetched user as a prop. I do this to avoid having to fetch the user on all sub pages, since they all need it.So my
[id].vue looks something like this:all the files in
[id]/ then start out something like this:Now my question is, how can I make this type safe? I have enabled
strictTemplates and fallthroughAttributes but I am getting this type error when compiling:Full type safety would be great but a way to silence this error would also work