shaligo
Preparing search index...
src/types
ListResource
Interface ListResource<TSummary, TDetail, TParams>
interface
ListResource
<
TSummary
,
TDetail
,
TParams
>
{
get
:
(
id
:
number
)
=>
Promise
<
TDetail
>
;
list
:
(
params
?:
TParams
)
=>
Promise
<
Paginated
<
TSummary
>
>
;
listAll
:
(
params
?:
TParams
)
=>
AsyncGenerator
<
TSummary
>
;
}
Type Parameters
TSummary
TDetail
TParams
Index
Properties
get
list
list
All
Properties
get
get
:
(
id
:
number
)
=>
Promise
<
TDetail
>
Fetch a single record by ID.
list
list
:
(
params
?:
TParams
)
=>
Promise
<
Paginated
<
TSummary
>
>
Fetch a single page.
list
All
listAll
:
(
params
?:
TParams
)
=>
AsyncGenerator
<
TSummary
>
Iterate every result across all pages.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
get
list
list
All
shaligo
Loading...
Fetch a single record by ID.