UNPKG

@hz-9/a5-crud-zod

Version:

Zod validation and CRUD utilities for the @hz-9/a5-* series of repositories.

26 lines (25 loc) 684 B
/** * A5CrudZodModule 的选项配置接口 * 用于同步配置方式 A5CrudZodModule.forRoot() * @public */ export type A5CrudZodModuleOptions = {}; /** * A5CrudZodModule 的异步选项配置接口 * 用于异步配置方式 A5CrudZodModule.forRootAsync() * @public */ export interface A5CrudZodModuleAsyncOptions { /** * 工厂函数,返回 A5PinoLoggerModuleOptions 配置对象 */ useFactory?: (...args: unknown[]) => Promise<A5CrudZodModuleOptions> | A5CrudZodModuleOptions; /** * 需要注入到 useFactory 函数中的依赖项 */ inject?: unknown[]; /** * 需要导入的模块列表 */ imports?: unknown[]; }