@sideloop/core
Preparing search index...
ModelShape
Interface ModelShape<TB>
interface
ModelShape
<
TB
>
{
attr
<
K
extends
string
|
number
|
symbol
>
(
name
:
K
)
:
Selectable
<
TB
>
[
K
]
;
attrs
()
:
Selectable
<
TB
>
;
destroy
()
:
Promise
<
void
>
;
reload
()
:
Promise
<
ModelShape
<
TB
>
>
;
transaction
(
cb
:
(
tx
:
Transaction
<
Database
>
)
=>
Promise
<
unknown
>
,
)
:
Promise
<
unknown
>
;
update
(
attrs
:
Updateable
<
TB
>
)
:
Promise
<
void
>
;
}
Type Parameters
TB
Hierarchy (
View Summary
)
ModelShape
ReadyExecution
ScheduledExecution
BlockedExecution
ClaimedExecution
FailedExecution
RecurringExecution
RecurringTask
Semaphore
Job
Pause
Index
Methods
attr
attrs
destroy
reload
transaction
update
Methods
attr
attr
<
K
extends
string
|
number
|
symbol
>
(
name
:
K
)
:
Selectable
<
TB
>
[
K
]
Type Parameters
K
extends
string
|
number
|
symbol
Parameters
name
:
K
Returns
Selectable
<
TB
>
[
K
]
attrs
attrs
()
:
Selectable
<
TB
>
Returns
Selectable
<
TB
>
destroy
destroy
()
:
Promise
<
void
>
Returns
Promise
<
void
>
reload
reload
()
:
Promise
<
ModelShape
<
TB
>
>
Returns
Promise
<
ModelShape
<
TB
>
>
transaction
transaction
(
cb
:
(
tx
:
Transaction
<
Database
>
)
=>
Promise
<
unknown
>
,
)
:
Promise
<
unknown
>
Parameters
cb
:
(
tx
:
Transaction
<
Database
>
)
=>
Promise
<
unknown
>
Returns
Promise
<
unknown
>
update
update
(
attrs
:
Updateable
<
TB
>
)
:
Promise
<
void
>
Parameters
attrs
:
Updateable
<
TB
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
attr
attrs
destroy
reload
transaction
update
@sideloop/core
Loading...