API 参考
正在准备搜索索引...
@142vip/nest-typeorm
TypeOrmModuleAsyncOptions
接口 TypeOrmModuleAsyncOptions
interface
TypeOrmModuleAsyncOptions
{
dataSourceFactory
?:
TypeOrmDataSourceFactory
;
extraProviders
?:
Provider
[]
;
imports
?:
(
|
DynamicModule
|
Type
<
any
>
|
Promise
<
DynamicModule
>
|
ForwardReference
<
any
>
)
[]
;
inject
?:
any
[]
;
name
?:
string
;
useClass
?:
Type
<
TypeOrmOptionsFactory
>
;
useExisting
?:
Type
<
TypeOrmOptionsFactory
>
;
useFactory
?:
(
...
args
:
any
[]
,
)
=>
TypeOrmModuleOptions
|
Promise
<
TypeOrmModuleOptions
>
;
}
层级
Pick
<
ModuleMetadata
,
"imports"
>
TypeOrmModuleAsyncOptions
索引
属性
data
Source
Factory?
extra
Providers?
imports?
inject?
name?
use
Class?
use
Existing?
use
Factory?
属性
可选
data
Source
Factory
dataSourceFactory
?:
TypeOrmDataSourceFactory
可选
extra
Providers
extraProviders
?:
Provider
[]
可选
imports
imports
?:
(
|
DynamicModule
|
Type
<
any
>
|
Promise
<
DynamicModule
>
|
ForwardReference
<
any
>
)
[]
Optional list of imported modules that export the providers which are required in this module.
可选
inject
inject
?:
any
[]
可选
name
name
?:
string
可选
use
Class
useClass
?:
Type
<
TypeOrmOptionsFactory
>
可选
use
Existing
useExisting
?:
Type
<
TypeOrmOptionsFactory
>
可选
use
Factory
useFactory
?:
(
...
args
:
any
[]
,
)
=>
TypeOrmModuleOptions
|
Promise
<
TypeOrmModuleOptions
>
显示设置
成员可见性
受保护
继承
外部
配色
自动
浅色
深色
目录
属性
data
Source
Factory
extra
Providers
imports
inject
name
use
Class
use
Existing
use
Factory
API 参考
加载中……
Optional list of imported modules that export the providers which are required in this module.