We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bafeb0 commit cd1c746Copy full SHA for cd1c746
1 file changed
src/typings.ts
@@ -23,9 +23,10 @@ export type Formatter =
23
((ctx: LogMessage, options: LambdaLogOptions, stringify: StringifyType) => string);
24
25
export type LogObject = {
26
+export type LogObject<T extends Message = Message> = {
27
level: string;
- msg: Message;
28
- meta?: GenericRecord;
+ msg: T;
29
+ meta?: Metadata;
30
tags?: Tag[];
31
};
32
0 commit comments