@hz-9/a5-tenant
Version:
Tenant module for the @hz-9/a5-* series of repositories.
27 lines (26 loc) • 649 B
TypeScript
import type { A5TenantGuardConstructorOptions } from './tenant';
/**
* A5 缓存模块配置选项
*
* @public
*/
export type A5TenantModuleOptions = A5TenantGuardConstructorOptions;
/**
* A5 缓存模块异步配置选项接口
*
* @public
*/
export interface A5TenantModuleAsyncOptions {
/**
* 工厂函数,返回 A5TenantModuleOptions 配置对象
*/
useFactory?: (...args: unknown[]) => Promise<A5TenantModuleOptions> | A5TenantModuleOptions;
/**
* 需要注入到 useFactory 函数中的依赖项
*/
inject?: unknown[];
/**
* 需要导入的模块列表
*/
imports?: unknown[];
}