svelte-check-tsgo-issue

0
0
0
Svelte
public

--tsgo reproduction issue

Actual:

$ pnpm test

> @slowreader/web@ test /workspaces/tsgo-issue
> svelte-check --tsgo

Loading svelte-check in workspace: /workspaces/tsgo-issue
Getting Svelte diagnostics...

/workspaces/tsgo-issue/ui/navbar/index.svelte:7:12
Error: Parameter 'e' implicitly has an 'any' type. (ts)
  wrongProp="should generate error"
  onclick={e => {
    e.preventDefault()

====================================
svelte-check found 1 error and 0 warnings in 1 file
 ELIFECYCLE  Test failed. See above for more details.

Expected:

$ pnpm expected

> @slowreader/web@ expected /workspaces/tsgo-issue
> svelte-check

Loading svelte-check in workspace: /workspaces/tsgo-issue
Getting Svelte diagnostics...

/workspaces/tsgo-issue/ui/navbar/index.svelte:6:3
Error: Object literal may only specify known properties, and '"wrongProp"' does not exist in type '$$ComponentProps'. (ts)
<NavbarButton
  wrongProp="should generate error"
  onclick={e => {

====================================
svelte-check found 1 error and 0 warnings in 1 file
 ELIFECYCLE  Command failed with exit code 1.
v0.3.3[beta]