@kubb/core 5.0.0-beta.6 → 5.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts CHANGED
@@ -800,12 +800,12 @@ export type LoggerOptions = {
800
800
  */
801
801
  export type LoggerContext = AsyncEventEmitter<KubbHooks>
802
802
 
803
- export type Logger<TOptions extends LoggerOptions = LoggerOptions> = {
803
+ export type Logger<TOptions extends LoggerOptions = LoggerOptions, TInstallReturn = void> = {
804
804
  name: string
805
- install: (context: LoggerContext, options?: TOptions) => void | Promise<void>
805
+ install: (context: LoggerContext, options?: TOptions) => TInstallReturn | Promise<TInstallReturn>
806
806
  }
807
807
 
808
- export type UserLogger<TOptions extends LoggerOptions = LoggerOptions> = Logger<TOptions>
808
+ export type UserLogger<TOptions extends LoggerOptions = LoggerOptions, TInstallReturn = void> = Logger<TOptions, TInstallReturn>
809
809
 
810
810
  export type { Storage } from './createStorage.ts'
811
811
  export type { Generator } from './defineGenerator.ts'