Skip to content
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

feat: add PageProps to _app #1229

Merged
merged 2 commits into from
May 31, 2023
Merged

feat: add PageProps to _app #1229

merged 2 commits into from
May 31, 2023

Conversation

huai-jie
Copy link
Contributor

This should same purpose as #1153 but with more strict type

Could use it as reference for #1153 and close this as duplicate

Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -116,7 +116,7 @@ export interface Route<Data = any> {

// --- APP ---

export interface AppProps {
export interface AppProps extends PageProps {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data is always unknown I guess?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, type parameter is fine as well for data property

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is not unknown, is any.

Copy link
Contributor

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks, @huai-jie.

@iuioiua iuioiua enabled auto-merge (squash) May 31, 2023 11:12
@iuioiua iuioiua merged commit b558b6e into denoland:main May 31, 2023
@huai-jie huai-jie deleted the app-page-props branch June 3, 2023 13:30
@deer deer mentioned this pull request Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants