Example
GitHub
Preparing search index...
The search index is not available
ic-reactor
ic-reactor
visitor
types
MethodField
Interface MethodField<A>
interface
MethodField
<
A
>
{
functionName
:
Extract
<
keyof
A
,
string
>
;
functionType
:
types
.
FunctionType
;
validateAndReturnArgs
:
(
(
data
)
=>
ArgTypeFromIDLType
<
Extract
<
keyof
A
,
string
>
>
[]
)
;
type
:
"normal"
;
transformData
:
(
(
data
)
=>
MethodRetsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
)
;
defaultValues
:
{
args
:
MethodArgsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
;
rets
:
MethodRetsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
;
}
;
argField
:
[
]
|
AllArgTypes
<
types
.
IDL
.
Type
<
any
>
>
[]
;
retField
:
[
]
|
AllReturnTypes
<
types
.
IDL
.
Type
<
any
>
>
[]
;
}
Type Parameters
A
=
types
.
BaseActor
Hierarchy
Omit
<
MethodArg
<
A
>
,
"fields"
|
"defaultValues"
>
Omit
<
NormalMethodReturn
<
A
>
,
"fields"
|
"defaultValues"
>
MethodField
Index
Properties
function
Name
function
Type
validate
And
Return
Args
type
transform
Data
default
Values
arg
Field
ret
Field
Properties
function
Name
function
Name
:
Extract
<
keyof
A
,
string
>
function
Type
function
Type
:
types
.
FunctionType
validate
And
Return
Args
validate
And
Return
Args
:
(
(
data
)
=>
ArgTypeFromIDLType
<
Extract
<
keyof
A
,
string
>
>
[]
)
Type declaration
(
data
)
:
ArgTypeFromIDLType
<
Extract
<
keyof
A
,
string
>
>
[]
Parameters
data
:
MethodArgsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
Returns
ArgTypeFromIDLType
<
Extract
<
keyof
A
,
string
>
>
[]
type
type
:
"normal"
transform
Data
transform
Data
:
(
(
data
)
=>
MethodRetsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
)
Type declaration
(
data
)
:
MethodRetsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
Parameters
data
:
unknown
Returns
MethodRetsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
default
Values
default
Values
:
{
args
:
MethodArgsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
;
rets
:
MethodRetsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
;
}
Type declaration
args
:
MethodArgsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
rets
:
MethodRetsDefaultValues
<
Extract
<
keyof
A
,
string
>
>
arg
Field
arg
Field
:
[
]
|
AllArgTypes
<
types
.
IDL
.
Type
<
any
>
>
[]
ret
Field
ret
Field
:
[
]
|
AllReturnTypes
<
types
.
IDL
.
Type
<
any
>
>
[]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
function
Name
function
Type
validate
And
Return
Args
type
transform
Data
default
Values
arg
Field
ret
Field
ic-reactor
Loading...