diff --git a/.changeset/violet-steaks-applaud.md b/.changeset/violet-steaks-applaud.md new file mode 100644 index 000000000..44d389d49 --- /dev/null +++ b/.changeset/violet-steaks-applaud.md @@ -0,0 +1,5 @@ +--- +'@ogma/nestjs-module': patch +--- + +Explicitly set the styler type diff --git a/packages/nestjs-module/src/ogma.service.ts b/packages/nestjs-module/src/ogma.service.ts index 9286deefe..5486f68fe 100644 --- a/packages/nestjs-module/src/ogma.service.ts +++ b/packages/nestjs-module/src/ogma.service.ts @@ -1,6 +1,7 @@ import { Injectable, LoggerService, Optional } from '@nestjs/common'; import { LogLevel, OgmaWritableLevel } from '@ogma/common'; import { Ogma } from '@ogma/logger'; +import type { Styler } from '@ogma/styler'; import { InjectOgma, InjectOgmaContext, InjectTraceMethod } from './decorators'; import { OgmaServiceMeta } from './interfaces'; @@ -47,7 +48,7 @@ export class OgmaService implements LoggerService { * instance that the logger uses for custom coloring without needing * to manage a new styler instance */ - public get style() { + public get style(): Styler { return this.ogma.style; }