Skip to content

Commit

Permalink
refactor: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kjin committed Sep 27, 2017
1 parent 6b39957 commit b15a69c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/trace-plugin-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export interface Intercept {
intercept: <T>(module: T, agent: TraceAgent) => T;
}

export type Plugin = (Patch | Intercept)[];
export type Instrumentation = Patch | Intercept;

export type Plugin = Array<Instrumentation>;

// type guards

Expand Down

0 comments on commit b15a69c

Please sign in to comment.