From 1357fc7a84aeca355b8eb9980b1387017c6c499a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6ssler?= Date: Thu, 27 Feb 2025 18:12:27 +0100 Subject: [PATCH] Fix types --- library/agent/hooks/instrumentation/codeTransformation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/agent/hooks/instrumentation/codeTransformation.ts b/library/agent/hooks/instrumentation/codeTransformation.ts index 2e274df0..5cc1c61e 100644 --- a/library/agent/hooks/instrumentation/codeTransformation.ts +++ b/library/agent/hooks/instrumentation/codeTransformation.ts @@ -1,4 +1,4 @@ -import type { PackageInstrumentationInstruction } from "./types"; +import type { PackageFileInstrumentationInstruction } from "./types"; // eslint-disable-next-line camelcase import { wasm_transform_code_str } from "./wasm/node_code_instrumentation"; import { getSourceType } from "./getSourceType"; @@ -8,7 +8,7 @@ export function transformCode( code: string, moduleName: string, isESM: boolean, - fileInstructions: PackageInstrumentationInstruction["files"][0] + fileInstructions: PackageFileInstrumentationInstruction ): string { const result = wasm_transform_code_str( code,