Skip to content

Commit

Permalink
chore: enable noImplicitAny on dependency-provider.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck authored and jfmengels committed Jul 9, 2024
1 parent 79e6b9a commit 7884f6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dependency-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DependencyProvider {
extra,
(pkg, version) =>
fetchElmJsonOffline(options, elmVersion, pkg, version),
(/** @type {string} */ pkg) => lister.list(elmVersion, pkg)
(pkg) => lister.list(elmVersion, pkg)
);
} catch (error) {
throw new Error(error);
Expand Down Expand Up @@ -282,6 +282,7 @@ class OnlineAvailableVersionLister {
*/
function readVersionsInElmHomeAndSort(elmVersion, pkg) {
const pkgPath = ProjectJsonFiles.getPackagePathInElmHome(elmVersion, pkg);
/** @type {string[]} */
let offlineVersions;
try {
offlineVersions = fs.readdirSync(pkgPath);
Expand Down
1 change: 1 addition & 0 deletions tsconfig.no-implicit-any.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"lib/benchmark.js",
"lib/cache.js",
"lib/debug.js",
"lib/dependency-provider.js",
"lib/elm-communication.js",
"lib/elm-files.js",
"lib/extra-files.js",
Expand Down

0 comments on commit 7884f6d

Please sign in to comment.