From 27d47e39f2cfb2c2cfdd329e63613994df689ca1 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 3 Jun 2024 12:58:34 -0500 Subject: [PATCH] chore: fix types (#423) No logical change here - just some cleanup --- src/node-file-trace.ts | 3 +-- src/utils/types.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/node-file-trace.ts b/src/node-file-trace.ts index 80c01857..455f69f6 100644 --- a/src/node-file-trace.ts +++ b/src/node-file-trace.ts @@ -4,12 +4,11 @@ import { NodeFileTraceReasons, NodeFileTraceReasonType, } from './types'; -import { basename, dirname, extname, relative, resolve, sep } from 'path'; +import { basename, dirname, extname, join, relative, resolve, sep } from 'path'; import analyze, { AnalyzeResult } from './analyze'; import resolveDependency, { NotFoundError } from './resolve-dependency'; import { isMatch } from 'micromatch'; import { sharedLibEmit } from './utils/sharedlib-emit'; -import { join } from 'path'; import { CachedFileSystem } from './fs'; function inPath(path: string, parent: string) { diff --git a/src/utils/types.ts b/src/utils/types.ts index 189a60d3..a5b42a73 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -20,6 +20,6 @@ export type EvaluatedValue = StaticValue | ConditionalValue | undefined; export interface Node { start: number; end: number; - type: string; + type: ESTreeNode['type']; [propName: string]: any; }