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

Handles custom variables incorrectly #2324

Closed
KTibow opened this issue Mar 24, 2024 · 0 comments
Closed

Handles custom variables incorrectly #2324

KTibow opened this issue Mar 24, 2024 · 0 comments
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.

Comments

@KTibow
Copy link

KTibow commented Mar 24, 2024

Describe the bug

(This might be the wrong place but) when I use custom variables without a value, TS errors like Object literal may only specify known properties, and '"--type"' does not exist in type '{ type: "primary" | "tonal" | "text"; disabled?: boolean | undefined; }'.

Reproduction

<Component --var />

Expected behaviour

If --var="true" doesn't error, --var should either not error (as it evaluates into the same thing) or give a more clear error (if this isn't supposed to be allowed).

System Info

  • OS: Fedora Workstation 38
  • IDE: VS Code

Which package is the issue about?

svelte-check

Additional Information, eg. Screenshots

No response

@KTibow KTibow added the bug Something isn't working label Mar 24, 2024
dummdidumm added a commit that referenced this issue Apr 25, 2024
@dummdidumm dummdidumm added the Fixed Fixed in master branch. Pending production release. label Apr 25, 2024
dummdidumm added a commit that referenced this issue Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.
Projects
None yet
Development

No branches or pull requests

2 participants