From d2812d2810a812f069f7d40fb9c6c870e30fb8e0 Mon Sep 17 00:00:00 2001 From: Godfrey Chan Date: Wed, 29 Jan 2025 02:08:18 -0800 Subject: [PATCH] refactor(instrumentation): fix eslint warnings (#5389) --- .../opentelemetry-instrumentation/src/types.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/experimental/packages/opentelemetry-instrumentation/src/types.ts b/experimental/packages/opentelemetry-instrumentation/src/types.ts index 27a8574fcd1..6df94e6c39a 100644 --- a/experimental/packages/opentelemetry-instrumentation/src/types.ts +++ b/experimental/packages/opentelemetry-instrumentation/src/types.ts @@ -135,15 +135,12 @@ export interface InstrumentationModuleDefinition { includePrerelease?: boolean; /** Method to patch the instrumentation */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - patch?: - | ((moduleExports: any, moduleVersion?: string | undefined) => any) - | undefined; + patch?: // eslint-disable-next-line @typescript-eslint/no-explicit-any + ((moduleExports: any, moduleVersion?: string | undefined) => any) | undefined; /** Method to unpatch the instrumentation */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - unpatch?: - | ((moduleExports: any, moduleVersion?: string | undefined) => void) + unpatch?: // eslint-disable-next-line @typescript-eslint/no-explicit-any + | ((moduleExports: any, moduleVersion?: string | undefined) => void) | undefined; }