Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
TypeScript emits InstrumentationNodeModuleDefinition with " | undefined"
for some reason, making it incompatible with
InstrumentationModuleDefinition under exactOptionalPropertyTypes.
  • Loading branch information
alecmev committed Jun 30, 2024
1 parent 01a2c35 commit dfdb3ba
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,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 dfdb3ba

Please sign in to comment.