Library Documentation
NPM
GitHub
Preparing search index...
The search index is not available
Amplify JS API Documentation
Amplify JS API Documentation
aws-amplify
api
<Reference Types>
CustomOperations
Type alias CustomOperations<OperationDefs, Context>
Custom
Operations
<
OperationDefs
,
Context
>
:
{
[
OpName
in
keyof
OperationDefs
]
:
{
CLIENT
:
(
(
...
params
)
=>
OperationDefs
[
OpName
]
[
"operationType"
]
extends
"Subscription"
?
ObservedReturnValue
<
OperationDefs
[
OpName
]
[
"type"
]
>
:
SingularReturnValue
<
OperationDefs
[
OpName
]
[
"type"
]
>
)
;
COOKIES
:
(
(
...
params
)
=>
SingularReturnValue
<
OperationDefs
[
OpName
]
[
"type"
]
>
)
;
REQUEST
:
(
(
contextSpec
,
...
params
)
=>
SingularReturnValue
<
OperationDefs
[
OpName
]
[
"type"
]
>
)
;
}
[
Context
]
}
Type Parameters
OperationDefs
extends
ClientSchemaByEntityTypeBaseShape
[
"queries"
|
"mutations"
|
"subscriptions"
|
"generations"
]
Context
extends
ContextType
=
"CLIENT"
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Amplify JS API Documentation
aws-amplify
@aws-amplify
geo
interactions
predictions
pubsub
adapter-nextjs
datastore-storage-adapter