Skip to content

Fix TS compiler warnings #100

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

Open
melange396 opened this issue Mar 5, 2025 · 0 comments
Open

Fix TS compiler warnings #100

melange396 opened this issue Mar 5, 2025 · 0 comments
Labels

Comments

@melange396
Copy link
Contributor

Fix the 3 existing typescript compiler warnings in this codebase, as can be seen in the npm build step in CI:

(!) Plugin typescript: @rollup/plugin-typescript TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
src/api/EpiData.ts: (186:98)

186             [f01] Failed to fetch API data from <a href="${url.href}">API Link</a>:<br/><i>${res['message']}</i>
                                                                                                     ~~~~~~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS[13](https://github.com/cmu-delphi/www-epivis/actions/runs/13682197887/job/38257069595?pr=90#step:7:14)71: This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'.
src/data/DataSet.ts: (3:1)

3 import EpiPoint from './EpiPoint';
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(!) Plugin typescript: @rollup/plugin-typescript: Typescript 'sourceMap' compiler option must be set to generate source maps.
(!) Circular dependency
src/store.ts -> src/deriveLinkDefaults.ts -> src/api/EpiData.ts -> src/store.ts
@melange396 melange396 added the bug label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant