Search
Preparing search index...
The search index is not available
Packadic API Documentation
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
packadic
util
promise
PromiseInterface
Interface PromiseInterface<T>
Type parameters
T
Hierarchy
ThenableInterface
<
T
>
PromiseInterface
Implemented by
Promise
Index
Methods
always
otherwise
then
Methods
always
always<TP>
(
errorCB
?:
DeferredErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
always<TP>
(
errorCB
?:
ImmediateErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
errorCB:
DeferredErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
errorCB:
ImmediateErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
otherwise
otherwise
(
errorCB
?:
DeferredErrorCB
<
T
>
)
:
PromiseInterface
<
T
>
otherwise
(
errorCB
?:
ImmediateErrorCB
<
T
>
)
:
PromiseInterface
<
T
>
Parameters
Optional
errorCB:
DeferredErrorCB
<
T
>
Returns
PromiseInterface
<
T
>
Parameters
Optional
errorCB:
ImmediateErrorCB
<
T
>
Returns
PromiseInterface
<
T
>
then
then<TP>
(
successCB
?:
DeferredSuccessCB
<
T
,
TP
>
, errorCB
?:
DeferredErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
then<TP>
(
successCB
?:
DeferredSuccessCB
<
T
,
TP
>
, errorCB
?:
ImmediateErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
then<TP>
(
successCB
?:
ImmediateSuccessCB
<
T
,
TP
>
, errorCB
?:
DeferredErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
then<TP>
(
successCB
?:
ImmediateSuccessCB
<
T
,
TP
>
, errorCB
?:
ImmediateErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
successCB:
DeferredSuccessCB
<
T
,
TP
>
Optional
errorCB:
DeferredErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
successCB:
DeferredSuccessCB
<
T
,
TP
>
Optional
errorCB:
ImmediateErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
successCB:
ImmediateSuccessCB
<
T
,
TP
>
Optional
errorCB:
DeferredErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
successCB:
ImmediateSuccessCB
<
T
,
TP
>
Optional
errorCB:
ImmediateErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
Globals
Internals
"underscore.string"
packadic
components
plugins
storage
util
JSON
material
num
obj
promise
version
Externals
"async"
"bootstrap"
"eventemitter2"
"highlight.js"
"jquery"
"lodash"
JQueryUI
_
Promise
State
Client
Deferred
Promise
Deferred
ErrorCB
Deferred
Interface
Deferred
SuccessCB
Dispatcher
Interface
Immediate
ErrorCB
Immediate
SuccessCB
Promise
Interface
always
otherwise
then
Thenable
Interface
Dispatch
Deferred
create
when