Example
GitHub
Preparing search index...
The search index is not available
ic-reactor
ic-reactor
visitor
VisitRandomRets
Class VisitRandomRets<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
<
unknown
,
MethodRetsDefaultValues
<
A
>
|
unknown
>
VisitRandomRets
Index
Constructors
constructor
Properties
in
Visit
saved
Rec
Methods
visit
Primitive
visit
Empty
visit
Reserved
visit
Number
visit
Construct
visit
Service
visit
Func
visit
Record
visit
Variant
visit
Vec
visit
Opt
visit
Tuple
visit
Rec
visit
Type
visit
Principal
visit
Null
visit
Bool
visit
Text
visit
Float
visit
Int
visit
Nat
visit
Fixed
Int
visit
Fixed
Nat
Constructors
constructor
new
Visit
Random
Rets
<
A
>
(
)
:
VisitRandomRets
<
A
>
Type Parameters
A
=
types
.
BaseActor
Returns
VisitRandomRets
<
A
>
Properties
Private
in
Visit
in
Visit
:
boolean
= false
Private
saved
Rec
saved
Rec
:
Record
<
string
,
unknown
>
= {}
Methods
visit
Primitive
visit
Primitive
<
T
>
(
t
,
data
)
:
unknown
Type Parameters
T
Parameters
t
:
types
.
IDL
.
PrimitiveType
<
T
>
data
:
unknown
Returns
unknown
visit
Empty
visit
Empty
(
t
,
data
)
:
unknown
Parameters
t
:
types
.
IDL
.
EmptyClass
data
:
unknown
Returns
unknown
visit
Reserved
visit
Reserved
(
t
,
data
)
:
unknown
Parameters
t
:
types
.
IDL
.
ReservedClass
data
:
unknown
Returns
unknown
visit
Number
visit
Number
<
T
>
(
t
,
data
)
:
unknown
Type Parameters
T
Parameters
t
:
types
.
IDL
.
PrimitiveType
<
T
>
data
:
unknown
Returns
unknown
visit
Construct
visit
Construct
<
T
>
(
t
,
data
)
:
unknown
Type Parameters
T
Parameters
t
:
types
.
IDL
.
ConstructType
<
T
>
data
:
unknown
Returns
unknown
visit
Service
visit
Service
(
t
,
data
)
:
unknown
Parameters
t
:
types
.
IDL
.
ServiceClass
data
:
unknown
Returns
unknown
visit
Func
visit
Func
(
t
)
:
MethodRetsDefaultValues
<
A
>
Parameters
t
:
types
.
IDL
.
FuncClass
Returns
MethodRetsDefaultValues
<
A
>
visit
Record
visit
Record
(
_t
,
fields
,
isRecursive
)
:
unknown
Parameters
_t
:
types
.
IDL
.
RecordClass
fields
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
isRecursive
:
boolean
Returns
unknown
visit
Variant
visit
Variant
(
_t
,
fields
,
isRecursive
)
:
unknown
Parameters
_t
:
types
.
IDL
.
VariantClass
fields
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
isRecursive
:
boolean
Returns
unknown
visit
Vec
visit
Vec
<
T
>
(
_t
,
type
,
isRecursive
)
:
unknown
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
VecClass
<
T
>
type
:
types
.
IDL
.
Type
<
any
>
isRecursive
:
boolean
Returns
unknown
visit
Opt
visit
Opt
<
T
>
(
_t
,
type
,
isRecursive
)
:
unknown
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
OptClass
<
T
>
type
:
types
.
IDL
.
Type
<
any
>
isRecursive
:
boolean
Returns
unknown
visit
Tuple
visit
Tuple
<
T
>
(
_t
,
components
,
isRecursive
)
:
unknown
Type Parameters
T
extends
types
.
IDL
.
Type
<
any
>
[]
Parameters
_t
:
types
.
IDL
.
TupleClass
<
T
>
components
:
types
.
IDL
.
Type
<
any
>
[]
isRecursive
:
boolean
Returns
unknown
visit
Rec
visit
Rec
<
T
>
(
_t
,
ty
)
:
unknown
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
RecClass
<
T
>
ty
:
types
.
IDL
.
ConstructType
<
T
>
Returns
unknown
visit
Type
visit
Type
<
T
>
(
_t
)
:
string
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
Returns
string
visit
Principal
visit
Principal
(
_t
)
:
types
.
Principal
Parameters
_t
:
types
.
IDL
.
PrincipalClass
Returns
types
.
Principal
visit
Null
visit
Null
(
_t
)
:
null
Parameters
_t
:
types
.
IDL
.
NullClass
Returns
null
visit
Bool
visit
Bool
(
_t
)
:
boolean
Parameters
_t
:
types
.
IDL
.
BoolClass
Returns
boolean
visit
Text
visit
Text
(
_t
)
:
string
Parameters
_t
:
types
.
IDL
.
TextClass
Returns
string
visit
Float
visit
Float
(
_t
)
:
number
Parameters
_t
:
types
.
IDL
.
FloatClass
Returns
number
visit
Int
visit
Int
(
_t
)
:
number
Parameters
_t
:
types
.
IDL
.
IntClass
Returns
number
visit
Nat
visit
Nat
(
_t
)
:
number
Parameters
_t
:
types
.
IDL
.
NatClass
Returns
number
visit
Fixed
Int
visit
Fixed
Int
(
t
)
:
number
|
bigint
Parameters
t
:
types
.
IDL
.
FixedIntClass
Returns
number
|
bigint
visit
Fixed
Nat
visit
Fixed
Nat
(
t
)
:
number
|
bigint
Parameters
t
:
types
.
IDL
.
FixedNatClass
Returns
number
|
bigint
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
in
Visit
saved
Rec
visit
Primitive
visit
Empty
visit
Reserved
visit
Number
visit
Construct
visit
Service
visit
Func
visit
Record
visit
Variant
visit
Vec
visit
Opt
visit
Tuple
visit
Rec
visit
Type
visit
Principal
visit
Null
visit
Bool
visit
Text
visit
Float
visit
Int
visit
Nat
visit
Fixed
Int
visit
Fixed
Nat
ic-reactor
Loading...
Visit the candid file and extract the fields. It returns the extracted service fields.