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

Fix Svelte Check warnings #142

Merged
merged 10 commits into from Jul 17, 2023
Merged

Fix Svelte Check warnings #142

merged 10 commits into from Jul 17, 2023

Conversation

rgieseke
Copy link
Contributor

Trying to better understand what's going on in #141 I tried running npm run check.

Not sure if that's the way to go as appeasing all type checking can be hard but it did help to catch some typos/missing braces. There still remain a bunch of errors but I wanted to start a PR to get your thoughts.

I disabled checking on marked-it.js to remove a lot of errors for now.

Fixes
'Cannot find module 'fs' or its corresponding type declarations.'
Fixes errors like
'Cannot find module '../../_data/fruitOrdinal.csv' or its corresponding type declarations.'
Error message was:
'Argument of type 'number[]' is not assignable to parameter of type 'number'. '
Error was
'Type 'readonly string[]' is not assignable to type 'Function | number[] | string[] | [min: number, max: number]'.'

Note that ForceDirectedGraph is currently commented out in `examples.js`
Error was:
'Object literal may only specify known properties, and '"text-outline"'
does not exist in type 'HTMLProps<"text", SVGAttributes<any>>'.'
@mhkeller mhkeller merged commit 24bacaa into mhkeller:main Jul 17, 2023
5 checks passed
@rgieseke rgieseke deleted the svelte-check branch July 17, 2023 15:06
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

Successfully merging this pull request may close these issues.

None yet

2 participants