Skip to content

Commit e7f4e94

Browse files
committed
chore: fix type
1 parent 57cfb71 commit e7f4e94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/devtools/src/app/components/modules/Folder.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const moduleTree = computed(() => {
2929
const inNodeModules: ModuleDest[] = []
3030
const inVirtual: ModuleDest[] = []
3131
32-
props.modules.map(i => ({ full: i.id, path: i.path })).forEach((i) => {
32+
props.modules.map(i => ({ full: i.id, path: i.path! })).forEach((i) => {
3333
if (i.full.startsWith(props.session.meta.cwd)) {
3434
if (!i.path.startsWith('../')) {
3535
i.path = i.full.slice(props.session.meta.cwd.length + 1)

packages/devtools/src/shared/types/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type { ModuleImport }
44

55
export interface ModuleListItem {
66
id: string
7-
path: string
7+
path?: string
88
fileType: string
99
imports: ModuleImport[]
1010
importers: string[]

0 commit comments

Comments
 (0)