Skip to content

Commit

Permalink
chore: removed extra export in docs/examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamorosi committed Aug 17, 2022
1 parent 6eebd7a commit 0879acf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/core/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ You can add default dimensions to your metrics by passing them as parameters in
}
}

export const handlerClass = new Lambda();
const handlerClass = new Lambda();
export const handler = handlerClass.handler.bind(handlerClass); // (1)
```

Expand Down Expand Up @@ -375,7 +375,7 @@ The `logMetrics` decorator of the metrics utility can be used when your Lambda h
}
}

export const handlerClass = new Lambda();
const handlerClass = new Lambda();
export const handler = handlerClass.handler.bind(handlerClass); // (1)
```

Expand Down Expand Up @@ -639,7 +639,7 @@ CloudWatch EMF uses the same dimensions across all your metrics. Use `singleMetr
}
}

export const handlerClass = new Lambda();
const handlerClass = new Lambda();
export const handler = handlerClass.handler.bind(handlerClass); // (1)
```

Expand Down
4 changes: 2 additions & 2 deletions packages/metrics/src/Metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const DEFAULT_NAMESPACE = 'default_namespace';
* }
* }
*
* export const handlerClass = new MyFunctionWithDecorator();
* const handlerClass = new MyFunctionWithDecorator();
* export const handler = handlerClass.handler.bind(handlerClass);
* ```
*
Expand Down Expand Up @@ -221,7 +221,7 @@ class Metrics extends Utility implements MetricsInterface {
* }
* }
*
* export const handlerClass = new MyFunctionWithDecorator();
* const handlerClass = new MyFunctionWithDecorator();
* export const handler = handlerClass.handler.bind(handlerClass);
* ```
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ class Lambda implements LambdaInterface {
}
}

export const handlerClass = new Lambda();
const handlerClass = new Lambda();
export const handler = handlerClass.handler.bind(handlerClass);

0 comments on commit 0879acf

Please sign in to comment.