Skip to content

fix: Fix InferGetStaticPropsType example#2944

Merged
Princesseuh merged 1 commit intomainfrom
fix/infer-params
Mar 30, 2023
Merged

fix: Fix InferGetStaticPropsType example#2944
Princesseuh merged 1 commit intomainfrom
fix/infer-params

Conversation

@Princesseuh
Copy link
Copy Markdown
Member

What kind of changes does this PR include?

  • Minor content fixes (broken links, typos, etc.)

Description

Our tooling does not automatically uses type Params to type Astro.params. It never has, actually. Additionally, the two slash commands were in the wrong spot

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 28, 2023

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 30b5fd6
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/6422f0e6ffce390008ca8599
😎 Deploy Preview https://deploy-preview-2944--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Copy Markdown
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

LGTM! Will we ever auto-type Astro.params? I guess it’s less important and also using params in a component would still need the as so maybe best just to leave it.

@Princesseuh
Copy link
Copy Markdown
Member Author

LGTM! Will we ever auto-type Astro.params? I guess it’s less important and also using params in a component would still need the as so maybe best just to leave it.

Maybe! We still have this old accepted RFC to implement eventually https://github.com/withastro/roadmap/blob/main/proposals/0026-component-interface.md

Copy link
Copy Markdown
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Thanks, @Princesseuh! LGTM!

@Princesseuh Princesseuh merged commit ab7482a into main Mar 30, 2023
@Princesseuh Princesseuh deleted the fix/infer-params branch March 30, 2023 09:01
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