Skip to content

Commit

Permalink
fix: fixed type def for correlation ids middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
theburningmonk committed May 4, 2021
1 parent 2013f6e commit 6470a0e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import {
import Log from "@dazn/lambda-powertools-logger";
import CorrelationIds from "@dazn/lambda-powertools-correlation-ids";

export default function <T, R, C extends Context = Context>(params: {
export default function <TEvent = any, TResult = any, TErr = Error>(params: {
sampleDebugLogRate: number;
}): middy.MiddlewareObj<T, R, C>;
}): middy.MiddlewareObj<TEvent, TResult, TErr>;

export type ExtractedCorrelationIdAndLogger<L = Log> = {
logger: L;
Expand Down

0 comments on commit 6470a0e

Please sign in to comment.