Closed Dan1ve closed 4 months ago
I updated from v6.2.0 to v6.4.0, which re-generated the ROUTES.ts file.
ROUTES.ts
Running svelte-check now produces a TypeScript error for the generated file at the StringOrUndefined helper function that wasn't being raised before:
svelte-check
StringOrUndefined
Error: Unused '@ts-expect-error' directive. // @ts-expect-error can break noUnusedLocals ts rule function StringOrUndefined(val: any) {
It's also visible in VS Code:
As this file is generated, I cannot fix this myself.
I'm not an expert on TypeScript error suppression, but maybe @ts-ignore would work instead?
@ts-ignore
blocking an upgrade
kitRoutes({ generated_file_path: 'src/lib/generated/ROUTES.ts' })
svelte-check --threshold error
No response
Hummm... It depend on another ticket (https://github.com/jycouet/kitql/issues/681) My fix was probably not the best...
I'll look later.
Describe the bug
I updated from v6.2.0 to v6.4.0, which re-generated the
ROUTES.ts
file.Running
svelte-check
now produces a TypeScript error for the generated file at theStringOrUndefined
helper function that wasn't being raised before:It's also visible in VS Code:
As this file is generated, I cannot fix this myself.
I'm not an expert on TypeScript error suppression, but maybe
@ts-ignore
would work instead?Severity
blocking an upgrade
Steps to Reproduce the Bug
svelte-check --threshold error
Reproduction
No response