-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore Vue 3 usePage
generic type
#1394
Conversation
@jessarcher just a note to please check the other adapters too. |
Good call! Looks like #1396 beat me too it though :) |
@innocenzi Hey! We've got this particular issue fixed in #1396 for React, but we're struggling to know exactly how to do this in the Vue adapters. We're getting this error:
Do you have any recommendations on how to fix this? |
c89d4db
to
25c56b7
Compare
@reinink Looks like the // in Vue
export function usePage<T extends PageProps>(): Page<T> {
return page.value
}
// and in core
export interface Page<SharedProps extends PageProps = PageProps> {
// ...
} |
Any news on this? |
11d96fe
to
e48f01e
Compare
When converting the adapters to TypeScript, I forgot to copy over the existing type definition for
usePage
which used a generic.This PR attempts to restore this, however, I can't currently get it to build.
Fixes #1381