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

Add type checking support for render snippets using alias syntax #833

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

jamesmengo
Copy link
Contributor

@jamesmengo jamesmengo commented Feb 28, 2025

What are you adding in this PR?

Closes https://github.com/Shopify/developer-tools-team/issues/606

Type checking support when the render tag is using a with/for alias syntax

This also skips type comparisons when the variable value is a VariableLookup. That's definitely functionality that we want to expand. Issue Link

Google Chrome - Sign in - Google Accounts

Before you deploy

  • I included a minor bump changeset
  • My feature is backward compatible

@jamesmengo jamesmengo requested review from aswamy and a team and removed request for a team February 28, 2025 00:21
@jamesmengo jamesmengo self-assigned this Feb 28, 2025
@jamesmengo jamesmengo added the #gsd:44310 LiquidDoc label Feb 28, 2025
@jamesmengo jamesmengo marked this pull request as ready for review February 28, 2025 00:23
@jamesmengo jamesmengo requested a review from a team as a code owner February 28, 2025 00:23
@jamesmengo jamesmengo removed the request for review from a team February 28, 2025 00:23
@jamesmengo jamesmengo force-pushed the jm/alias_unrecognized_params branch 2 times, most recently from 99aba80 to 2135423 Compare February 28, 2025 20:06
Copy link
Contributor

@aswamy aswamy left a comment

Choose a reason for hiding this comment

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

1 nit but rest is good

@jamesmengo jamesmengo changed the base branch from jm/alias_unrecognized_params to graphite-base/833 February 28, 2025 23:03
@jamesmengo jamesmengo changed the base branch from graphite-base/833 to main February 28, 2025 23:04
- Extend ValidRenderSnippetParamTypes to handle `with/as` alias scenarios
… check if default value is empty. This applies to object types
Copy link
Contributor Author

jamesmengo commented Feb 28, 2025

Merge activity

  • Feb 28, 6:22 PM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 28, 6:22 PM EST: A user merged this pull request with Graphite.

@jamesmengo jamesmengo merged commit 7b98362 into main Feb 28, 2025
7 checks passed
@jamesmengo jamesmengo deleted the jm/alias_typechecks branch February 28, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#gsd:44310 LiquidDoc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants