diff --git a/types/winston/index.d.ts b/types/winston/index.d.ts index b4c888965a..3de43e4349 100644 --- a/types/winston/index.d.ts +++ b/types/winston/index.d.ts @@ -242,10 +242,7 @@ declare namespace winston { level?: string; levels?: AbstractConfigSetLevels; - /** - * @type {(boolean|(err: Error) => void)} - */ - exitOnError?: any; + exitOnError?: boolean | ((err: Error) => void); // TODO: Need to make instances specific, // and need to get options for each instance.