Skip to content

Commit de8d7b8

Browse files
fix(ecs-winston-format): fix types expression in ambient context error (#93)
- remove executable code in declaration file - fix missing import error; Format is not exported from the winston root
1 parent f8137ec commit de8d7b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

loggers/winston/index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Format } from "winston";
1+
import type { Logform } from "winston";
22

33
interface Config {
44
/**
@@ -27,4 +27,6 @@ interface Config {
2727
apmIntegration?: boolean;
2828
}
2929

30-
export = (opts?: Config) => Format
30+
declare function ecsFormat(opts?: Config): Logform.Format;
31+
32+
export = ecsFormat;

0 commit comments

Comments
 (0)