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

Svelte 5: $inspect rune typescript errors #9735

Closed
amit13k opened this issue Dec 1, 2023 · 1 comment
Closed

Svelte 5: $inspect rune typescript errors #9735

amit13k opened this issue Dec 1, 2023 · 1 comment

Comments

@amit13k
Copy link

amit13k commented Dec 1, 2023

Describe the bug

The inspect rune is great. However, it seems the types are not implemented properly for it yet.
I get a typescript error Expected 0 arguments, but got 1.ts(2554) when using $inspect.

Reproduction

<script lang="ts">
let count = $state(0);
$inspect(count) // Expected 0 arguments, but got 1.ts(2554)
</script>

Logs

No response

System Info

System:
    OS: macOS 14.2
    CPU: (12) arm64 Apple M2 Pro
    Memory: 88.31 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.2.0 - /opt/homebrew/bin/node
    Yarn: 1.22.21 - /opt/homebrew/bin/yarn
    npm: 10.2.4 - /opt/homebrew/bin/npm
    pnpm: 8.11.0 - ~/Library/pnpm/pnpm
    bun: 1.0.3 - ~/.bun/bin/bun
  Browsers:
    Chrome: 119.0.6045.199
    Chrome Canary: 121.0.6157.0
    Safari: 17.2

Severity

annoyance

@amit13k
Copy link
Author

amit13k commented Dec 1, 2023

#9731 seems to fix this.

@amit13k amit13k closed this as completed Dec 1, 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

No branches or pull requests

1 participant