Preparing search index...
The search index is not available
@euk-labs/fetchx
@euk-labs/fetchx
Repository
Class Repository
Hierarchy
Repository
Index
Constructors
constructor
Methods
create
delete
patch
put
read
Constructors
constructor
new
Repository
(
apiService
:
HttpService
, options
:
RepositoryOptions
)
:
Repository
Parameters
apiService:
HttpService
options:
RepositoryOptions
Returns
Repository
Methods
create
create
<
Data
,
T
>
(
data
:
Data
)
:
Promise
<
ResponseWithData
<
T
>
>
Type Parameters
Data
extends
object
T
extends
object
Parameters
data:
Data
Returns
Promise
<
ResponseWithData
<
T
>
>
delete
delete
<
T
>
(
id
:
Identifier
)
:
Promise
<
ResponseWithData
<
T
>
>
Type Parameters
T
extends
object
Parameters
id:
Identifier
Returns
Promise
<
ResponseWithData
<
T
>
>
patch
patch
<
Data
,
T
>
(
id
:
Identifier
, data
:
Data
)
:
Promise
<
ResponseWithData
<
T
>
>
Type Parameters
Data
extends
object
T
extends
object
Parameters
id:
Identifier
data:
Data
Returns
Promise
<
ResponseWithData
<
T
>
>
put
put
<
Data
,
T
>
(
id
:
Identifier
, data
:
Data
)
:
Promise
<
ResponseWithData
<
T
>
>
Type Parameters
Data
extends
object
T
extends
object
Parameters
id:
Identifier
data:
Data
Returns
Promise
<
ResponseWithData
<
T
>
>
read
read
<
T
>
(
id
?:
Identifier
)
:
Promise
<
ResponseWithData
<
T
>
>
Type Parameters
T
extends
object
Parameters
Optional
id:
Identifier
Returns
Promise
<
ResponseWithData
<
T
>
>
read
<
T
>
(
params
?:
RequestInitWithParams
)
:
Promise
<
ResponseWithData
<
T
>
>
Type Parameters
T
extends
object
Parameters
Optional
params:
RequestInitWithParams
Returns
Promise
<
ResponseWithData
<
T
>
>
read
<
T
>
(
id
:
Identifier
, params
?:
RequestInitWithParams
)
:
Promise
<
ResponseWithData
<
T
>
>
Type Parameters
T
extends
object
Parameters
id:
Identifier
Optional
params:
RequestInitWithParams
Returns
Promise
<
ResponseWithData
<
T
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
@euk-
labs/fetchx
Repository
constructor
create
delete
patch
put
read
Generated using
TypeDoc