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) 251 B
import type { StrategyBody } from './strategyBody'; export type BodiesIntersection<TStrategies, K extends keyof TStrategies> = (K extends unknown ? (object: StrategyBody<TStrategies, K>) => void : never) extends (object: infer I) => void ? I : never;