Skip to content

Commit 0879acf

Browse files
committed
chore: removed extra export in docs/examples
1 parent 6eebd7a commit 0879acf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/core/metrics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ You can add default dimensions to your metrics by passing them as parameters in
277277
}
278278
}
279279

280-
export const handlerClass = new Lambda();
280+
const handlerClass = new Lambda();
281281
export const handler = handlerClass.handler.bind(handlerClass); // (1)
282282
```
283283

@@ -375,7 +375,7 @@ The `logMetrics` decorator of the metrics utility can be used when your Lambda h
375375
}
376376
}
377377

378-
export const handlerClass = new Lambda();
378+
const handlerClass = new Lambda();
379379
export const handler = handlerClass.handler.bind(handlerClass); // (1)
380380
```
381381

@@ -639,7 +639,7 @@ CloudWatch EMF uses the same dimensions across all your metrics. Use `singleMetr
639639
}
640640
}
641641

642-
export const handlerClass = new Lambda();
642+
const handlerClass = new Lambda();
643643
export const handler = handlerClass.handler.bind(handlerClass); // (1)
644644
```
645645

packages/metrics/src/Metrics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const DEFAULT_NAMESPACE = 'default_namespace';
5858
* }
5959
* }
6060
*
61-
* export const handlerClass = new MyFunctionWithDecorator();
61+
* const handlerClass = new MyFunctionWithDecorator();
6262
* export const handler = handlerClass.handler.bind(handlerClass);
6363
* ```
6464
*
@@ -221,7 +221,7 @@ class Metrics extends Utility implements MetricsInterface {
221221
* }
222222
* }
223223
*
224-
* export const handlerClass = new MyFunctionWithDecorator();
224+
* const handlerClass = new MyFunctionWithDecorator();
225225
* export const handler = handlerClass.handler.bind(handlerClass);
226226
* ```
227227
*

packages/metrics/tests/e2e/basicFeatures.decorator.test.functionCode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ class Lambda implements LambdaInterface {
4242
}
4343
}
4444

45-
export const handlerClass = new Lambda();
45+
const handlerClass = new Lambda();
4646
export const handler = handlerClass.handler.bind(handlerClass);

0 commit comments

Comments
 (0)