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

Feature: Emit utility types for Gatsby #49

Open
3 tasks
cometkim opened this issue Mar 3, 2020 · 1 comment
Open
3 tasks

Feature: Emit utility types for Gatsby #49

cometkim opened this issue Mar 3, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request tooling Something about tooling & integrations

Comments

@cometkim
Copy link
Owner

cometkim commented Mar 3, 2020

@cometkim cometkim added enhancement New feature or request tooling Something about tooling & integrations labels Mar 3, 2020
@cometkim cometkim self-assigned this Mar 3, 2020
@cometkim
Copy link
Owner Author

cometkim commented Oct 22, 2020

Gatsby provides a utility type PageProps contains Data and Context type parameters describe what injected into the page component.

Data can be the generated type from page queries, and Context is a subtype of the SitePageContext type.

The plugin knows what is the type for each page component and can automatically generate props type definitions.

#74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tooling Something about tooling & integrations
Projects
None yet
Development

No branches or pull requests

1 participant