diff --git a/src/index.ts b/src/index.ts index 8de5373..bb20d1b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -95,7 +95,7 @@ export function compileCode(code: string, globals?: Record): Byteco return compiler.bytecode } -export function parseFile(path: string, globals?: Record): SyntaxNode { +export function parseFile(path: string, globals?: Record): Tree { const code = readFileSync(path, 'utf-8') return parseCode(code, globals) }