Closed
Description
Expected Behavior
The LoggerInterface
should be able to be imported, so I can decorate the logger with my own implementation.
import { LoggerInterface } from '@aws-lambda-powertools/logger/types';
Current Behavior
The current export of logger types is missing the LoggerInterface
from Logger.d.ts
. See
powertools-lambda-typescript/packages/logger/src/types/index.ts
Lines 9 to 18 in 72803e2
Code snippet
import { LoggerInterface } from '@aws-lambda-powertools/logger/types';
Steps to Reproduce
- install powertools
- try to import the
LoggerInterface
- TS2305 (no exported member) error should occur
Possible Solution
Export also LoggerInterface
here
powertools-lambda-typescript/packages/logger/src/types/index.ts
Lines 9 to 18 in 72803e2
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
20.x
Packaging format used
npm
Execution logs
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped