@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/README.md +8 -38
- package/dist/index.cjs +17 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +18 -3
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/dist/mocks.d.ts +1 -1
- package/dist/{types-DVPKmzw_.d.ts → types-ChyWgIgi.d.ts} +4 -4
- package/package.json +5 -12
- package/src/defineLogger.ts +19 -2
- package/src/types.ts +3 -3
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) =>
|
|
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'
|