Example
GitHub
Preparing search index...
The search index is not available
ic-reactor
ic-reactor
visitor
VisitReturn
Class VisitReturn<A>
Visit the candid file and extract the fields. It returns the extracted service fields.
Type Parameters
A
=
types
.
BaseActor
Hierarchy (
view full
)
types
.
IDL
.
Visitor
<
string
,
MethodReturn
<
A
>
|
DefaultReturn
|
ServiceReturn
<
A
>
>
VisitReturn
Index
Constructors
constructor
Properties
in
Visit
Methods
visit
Primitive
visit
Empty
visit
Reserved
visit
Construct
visit
Func
visit
Record
visit
Variant
visit
Tuple
visit
Rec
visit
Opt
visit
Vec
visit
Type
visit
Principal
visit
Bool
visit
Null
visit
Text
visit
Number
visit
Int
visit
Nat
visit
Float
visit
Fixed
Int
visit
Fixed
Nat
visit
Service
Constructors
constructor
new
Visit
Return
<
A
>
(
)
:
VisitReturn
<
A
>
Type Parameters
A
=
types
.
BaseActor
Returns
VisitReturn
<
A
>
Properties
Private
in
Visit
in
Visit
:
boolean
= false
Methods
visit
Primitive
visit
Primitive
<
T
>
(
t
,
data
)
:
DefaultReturn
|
MethodReturn
<
A
>
|
ServiceReturn
<
A
>
Type Parameters
T
Parameters
t
:
types
.
IDL
.
PrimitiveType
<
T
>
data
:
string
Returns
DefaultReturn
|
MethodReturn
<
A
>
|
ServiceReturn
<
A
>
visit
Empty
visit
Empty
(
t
,
data
)
:
DefaultReturn
|
MethodReturn
<
A
>
|
ServiceReturn
<
A
>
Parameters
t
:
types
.
IDL
.
EmptyClass
data
:
string
Returns
DefaultReturn
|
MethodReturn
<
A
>
|
ServiceReturn
<
A
>
visit
Reserved
visit
Reserved
(
t
,
data
)
:
DefaultReturn
|
MethodReturn
<
A
>
|
ServiceReturn
<
A
>
Parameters
t
:
types
.
IDL
.
ReservedClass
data
:
string
Returns
DefaultReturn
|
MethodReturn
<
A
>
|
ServiceReturn
<
A
>
visit
Construct
visit
Construct
<
T
>
(
t
,
data
)
:
DefaultReturn
|
MethodReturn
<
A
>
|
ServiceReturn
<
A
>
Type Parameters
T
Parameters
t
:
types
.
IDL
.
ConstructType
<
T
>
data
:
string
Returns
DefaultReturn
|
MethodReturn
<
A
>
|
ServiceReturn
<
A
>
visit
Func
visit
Func
(
t
,
functionName
)
:
MethodReturn
<
A
>
Parameters
t
:
types
.
IDL
.
FuncClass
functionName
:
types
.
FunctionName
<
A
>
Returns
MethodReturn
<
A
>
visit
Record
visit
Record
(
_t
,
_fields
,
label
)
:
RecordReturn
<
types
.
IDL
.
Type
<
any
>
>
|
FunctionRecordReturn
<
types
.
IDL
.
Type
<
any
>
>
Parameters
_t
:
types
.
IDL
.
RecordClass
_fields
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
label
:
string
Returns
RecordReturn
<
types
.
IDL
.
Type
<
any
>
>
|
FunctionRecordReturn
<
types
.
IDL
.
Type
<
any
>
>
visit
Variant
visit
Variant
(
_t
,
fields_
,
label
)
:
VariantReturn
<
types
.
IDL
.
Type
<
any
>
>
Parameters
_t
:
types
.
IDL
.
VariantClass
fields_
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
label
:
string
Returns
VariantReturn
<
types
.
IDL
.
Type
<
any
>
>
visit
Tuple
visit
Tuple
<
T
>
(
_t
,
components
,
label
)
:
TupleReturn
<
types
.
IDL
.
Type
<
any
>
>
Type Parameters
T
extends
types
.
IDL
.
Type
<
any
>
[]
Parameters
_t
:
types
.
IDL
.
TupleClass
<
T
>
components
:
types
.
IDL
.
Type
<
any
>
[]
label
:
string
Returns
TupleReturn
<
types
.
IDL
.
Type
<
any
>
>
visit
Rec
visit
Rec
<
T
>
(
_t
,
ty
,
label
)
:
RecursiveReturn
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
RecClass
<
T
>
ty
:
types
.
IDL
.
ConstructType
<
T
>
label
:
string
Returns
RecursiveReturn
visit
Opt
visit
Opt
<
T
>
(
_t
,
ty
,
label
)
:
OptionalReturn
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
OptClass
<
T
>
ty
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
OptionalReturn
visit
Vec
visit
Vec
<
T
>
(
_t
,
ty
,
label
)
:
VectorReturn
|
ListReturn
|
BlobReturn
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
VecClass
<
T
>
ty
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
VectorReturn
|
ListReturn
|
BlobReturn
visit
Type
visit
Type
<
T
>
(
_t
,
label
)
:
DefaultReturn
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
DefaultReturn
visit
Principal
visit
Principal
(
_t
,
label
)
:
PrincipalReturn
Parameters
_t
:
types
.
IDL
.
PrincipalClass
label
:
string
Returns
PrincipalReturn
visit
Bool
visit
Bool
(
_t
,
label
)
:
DefaultReturn
Parameters
_t
:
types
.
IDL
.
BoolClass
label
:
string
Returns
DefaultReturn
visit
Null
visit
Null
(
_t
,
label
)
:
DefaultReturn
Parameters
_t
:
types
.
IDL
.
NullClass
label
:
string
Returns
DefaultReturn
visit
Text
visit
Text
(
_t
,
label
)
:
DefaultReturn
Parameters
_t
:
types
.
IDL
.
TextClass
label
:
string
Returns
DefaultReturn
visit
Number
visit
Number
<
T
>
(
_t
,
label
)
:
NumberReturn
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
NumberReturn
visit
Int
visit
Int
(
t
,
label
)
:
NumberReturn
Parameters
t
:
types
.
IDL
.
IntClass
label
:
string
Returns
NumberReturn
visit
Nat
visit
Nat
(
t
,
label
)
:
NumberReturn
Parameters
t
:
types
.
IDL
.
NatClass
label
:
string
Returns
NumberReturn
visit
Float
visit
Float
(
t
,
label
)
:
NumberReturn
Parameters
t
:
types
.
IDL
.
FloatClass
label
:
string
Returns
NumberReturn
visit
Fixed
Int
visit
Fixed
Int
(
t
,
label
)
:
NumberReturn
Parameters
t
:
types
.
IDL
.
FixedIntClass
label
:
string
Returns
NumberReturn
visit
Fixed
Nat
visit
Fixed
Nat
(
t
,
label
)
:
NumberReturn
Parameters
t
:
types
.
IDL
.
FixedNatClass
label
:
string
Returns
NumberReturn
visit
Service
visit
Service
(
t
)
:
ServiceReturn
<
A
>
Parameters
t
:
types
.
IDL
.
ServiceClass
Returns
ServiceReturn
<
A
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
in
Visit
visit
Primitive
visit
Empty
visit
Reserved
visit
Construct
visit
Func
visit
Record
visit
Variant
visit
Tuple
visit
Rec
visit
Opt
visit
Vec
visit
Type
visit
Principal
visit
Bool
visit
Null
visit
Text
visit
Number
visit
Int
visit
Nat
visit
Float
visit
Fixed
Int
visit
Fixed
Nat
visit
Service
ic-reactor
Loading...
Visit the candid file and extract the fields. It returns the extracted service fields.