Skip to content

Commit

Permalink
fix(instrumentation): allow different export types for files within a…
Browse files Browse the repository at this point in the history
… module
  • Loading branch information
haines committed Aug 9, 2023
1 parent 48fb158 commit 16864d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import {
export class InstrumentationNodeModuleDefinition<T>
implements InstrumentationModuleDefinition<T>
{
files: InstrumentationModuleFile<T>[];
files: InstrumentationModuleFile<unknown>[];
constructor(
public name: string,
public supportedVersions: string[],
public patch?: (exports: T, moduleVersion?: string) => T,
public unpatch?: (exports: T, moduleVersion?: string) => void,
files?: InstrumentationModuleFile<any>[]
files?: InstrumentationModuleFile<unknown>[]
) {
this.files = files || [];
}
Expand Down

0 comments on commit 16864d4

Please sign in to comment.