Documentation / @tenancy-node/core / defineConfig
Function: defineConfig()
defineConfig<
P>(config):TenancyConfig&object
Defined in: core/src/config.ts:278
Declara la configuración con tipos y autocompletado. Conserva el tipo de los plugins, así createTenancy(config) sabe qué métodos agregan (por ejemplo tenancy.db()).
Type Parameters
P
P extends readonly TenancyPlugin<object>[] = []
Parameters
config
TenancyConfig & object
Returns
TenancyConfig & object