Skip to content

Commit

Permalink
fix(instrumentation): Fix optional property types (#4833)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecmev authored Aug 15, 2024
1 parent f047db9 commit bb67268
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/

* fix(sdk-node): avoid spurious diag errors for unknown OTEL_NODE_RESOURCE_DETECTORS values [#4879](https://github.com/open-telemetry/opentelemetry-js/pull/4879) @trentm
* deps(opentelemetry-instrumentation): Bump `shimmer` types to 1.2.0 [#4865](https://github.com/open-telemetry/opentelemetry-js/pull/4865) @lforst
* fix(instrumentation): Fix optional property types [#4833](https://github.com/open-telemetry/opentelemetry-js/pull/4833) @alecmev

### :books: (Refine Doc)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,15 @@ export interface InstrumentationModuleDefinition {

/** Method to patch the instrumentation */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
patch?: (moduleExports: any, moduleVersion?: string) => any;
patch?:
| ((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) => void;
unpatch?:
| ((moduleExports: any, moduleVersion?: string | undefined) => void)
| undefined;
}

/**
Expand Down

0 comments on commit bb67268

Please sign in to comment.