I have an auth layer that has a middleware that checks routse for
route.meta.permissions
route.meta.permissions
I added that to a
.d.ts
.d.ts
file so I get full type safety:
declare module "#app" { interface PageMeta { permissions?: UserPermission[]; }}// It is always important to ensure you import/export something when augmenting a typeexport {};
declare module "#app" { interface PageMeta { permissions?: UserPermission[]; }}// It is always important to ensure you import/export something when augmenting a typeexport {};
But, the app i have extending this layer doesn't get that type safety. What can i do to fix that?