Skip to content

Commit 409cb9b

Browse files
committed
fix outdated type import
1 parent 047ca5b commit 409cb9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cli/src/splitRunner/splitRunner.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { File } from "./types";
55
import Parser from "tree-sitter";
66
import assert from "assert";
77
import { getLanguagePlugin } from "../languagesPlugins";
8-
import { Export } from "../languagesPlugins/types";
8+
import { DepExport } from "../languagesPlugins/types";
99

1010
class SplitRunner {
1111
private dependencyTreeManager: DependencyTreeManager;
@@ -33,7 +33,7 @@ class SplitRunner {
3333
}
3434

3535
#getExportMap() {
36-
const exportMap = new Map<string, Export>();
36+
const exportMap = new Map<string, DepExport[]>();
3737

3838
this.files.forEach((file) => {
3939
const languagePlugin = getLanguagePlugin(this.entrypointPath, file.path);
@@ -48,7 +48,7 @@ class SplitRunner {
4848
return exportMap;
4949
}
5050

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

@@ -117,7 +117,7 @@ class SplitRunner {
117117
}
118118
}
119119

120-
#removeUnusedExports(exportMap: Map<string, Export>) {
120+
#removeUnusedExports(exportMap: Map<string, DepExport[]>) {
121121
let exportDeleted = true;
122122
while (exportDeleted) {
123123
exportDeleted = false;

0 commit comments

Comments
 (0)