UNPKG

@nowarajs/logger

Version:

Type-safe logging library for Bun with advanced TypeScript body intersection, modular strategy pattern, transform streams, and immutable API design.

3 lines (2 loc) 197 B
import type { LoggerStrategy } from './loggerStrategy'; export type StrategyBody<TStrategies, Key extends keyof TStrategies> = TStrategies[Key] extends LoggerStrategy<infer TBody> ? TBody : never;