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 28, 2017
1 parent 78e66a7 commit f8e43a5
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 @@ -81,7 +81,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 f8e43a5

Please sign in to comment.