Skip to content

Commit

Permalink
refactor(instrumentation): fix eslint warnings
Browse files Browse the repository at this point in the history
```
/home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/opentelemetry-instrumentation/src/types.ts
  140:24  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
  140:68  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
  146:24  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
```

The annotations weren't working because they were placed on the
wrong lines.

Ref open-telemetry#5365
  • Loading branch information
chancancode committed Jan 28, 2025
1 parent 199fd8d commit 817bd92
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions experimental/packages/opentelemetry-instrumentation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 817bd92

Please sign in to comment.