From d3d3c0508857202c54b98f087e74cd10a954b4be Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 11 Apr 2023 01:59:18 +0200 Subject: [PATCH] fix(consola): type defaults overrides generic defaults --- src/consola.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/consola.ts b/src/consola.ts index dc7762aa..e9dfba30 100644 --- a/src/consola.ts +++ b/src/consola.ts @@ -49,8 +49,8 @@ export class Consola { for (const type in types) { const defaults: InputLogObject = { type: type as LogType, - ...types[type as LogType], ...this.options.defaults, + ...types[type as LogType], }; (this as any)[type] = this._wrapLogFn(defaults); (this as any)[type].raw = this._wrapLogFn(defaults, true);