@kaguyajs/trss-yunzai-types
Preparing search index...
guoba
ConfigInfo
Interface ConfigInfo<T>
interface
ConfigInfo
<
T
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
>
{
getConfigData
?:
()
=>
T
|
Promise
<
T
>
;
schemas
?:
Schemas
<
T
>
;
setConfigData
?:
(
data
:
PathRecord
<
T
>
&
{
[
k
:
string
]:
any
}
,
param
:
{
Result
:
typeof
Result
}
,
)
=>
Result
<
any
>
|
Promise
<
Result
<
any
>
>
;
}
Type Parameters
T
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Index
Properties
get
Config
Data?
schemas?
set
Config
Data?
Properties
Optional
get
Config
Data
getConfigData
?:
()
=>
T
|
Promise
<
T
>
获取配置数据方法
用于前端填充显示数据
Optional
schemas
schemas
?:
Schemas
<
T
>
配置项
Optional
set
Config
Data
setConfigData
?:
(
data
:
PathRecord
<
T
>
&
{
[
k
:
string
]:
any
}
,
param
:
{
Result
:
typeof
Result
}
,
)
=>
Result
<
any
>
|
Promise
<
Result
<
any
>
>
保存配置数据方法(用于前端提交保存)
Type Declaration
(
data
:
PathRecord
<
T
>
&
{
[
k
:
string
]:
any
}
,
param
:
{
Result
:
typeof
Result
}
,
)
:
Result
<
any
>
|
Promise
<
Result
<
any
>
>
Parameters
data
:
PathRecord
<
T
>
&
{
[
k
:
string
]:
any
}
数据
param
:
{
Result
:
typeof
Result
}
参数
Result
:
typeof
Result
返回结果
Returns
Result
<
any
>
|
Promise
<
Result
<
any
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
get
Config
Data
schemas
set
Config
Data
@kaguyajs/trss-yunzai-types
Loading...
获取配置数据方法
用于前端填充显示数据