Skip to content

Commit

Permalink
fix outdated type import
Browse files Browse the repository at this point in the history
  • Loading branch information
florianbgt committed Nov 27, 2024
1 parent 047ca5b commit 409cb9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/cli/src/splitRunner/splitRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { File } from "./types";
import Parser from "tree-sitter";
import assert from "assert";
import { getLanguagePlugin } from "../languagesPlugins";
import { Export } from "../languagesPlugins/types";
import { DepExport } from "../languagesPlugins/types";

class SplitRunner {
private dependencyTreeManager: DependencyTreeManager;
Expand Down Expand Up @@ -33,7 +33,7 @@ class SplitRunner {
}

#getExportMap() {
const exportMap = new Map<string, Export>();
const exportMap = new Map<string, DepExport[]>();

this.files.forEach((file) => {
const languagePlugin = getLanguagePlugin(this.entrypointPath, file.path);
Expand All @@ -48,7 +48,7 @@ class SplitRunner {
return exportMap;
}

#removeInvalidImportsAndUsages(exportMap: Map<string, Export>) {
#removeInvalidImportsAndUsages(exportMap: Map<string, DepExport[]>) {
this.files = this.files.map((file) => {
const languagePlugin = getLanguagePlugin(this.entrypointPath, file.path);

Expand Down Expand Up @@ -117,7 +117,7 @@ class SplitRunner {
}
}

#removeUnusedExports(exportMap: Map<string, Export>) {
#removeUnusedExports(exportMap: Map<string, DepExport[]>) {
let exportDeleted = true;
while (exportDeleted) {
exportDeleted = false;
Expand Down

0 comments on commit 409cb9b

Please sign in to comment.