@mica/sdk (SDK contract v1)
Preparing search index...
index
useMarketplace
Function useMarketplace
useMarketplace
()
:
{
feedStore
:
Writable
<
ListingPage
>
;
loadFeed
:
()
=>
Promise
<
void
>
;
loadMine
:
()
=>
Promise
<
void
>
;
markSold
:
(
id
:
number
)
=>
Promise
<
boolean
>
;
mineStore
:
Writable
<
ListingPage
>
;
postListing
:
(
input
:
CreateListingInput
)
=>
Promise
<
Listing
>
;
removeListing
:
(
id
:
number
)
=>
Promise
<
boolean
>
;
searchListings
:
(
q
:
string
)
=>
Promise
<
ListingPage
>
;
viewListing
:
(
id
:
number
,
)
=>
Promise
<
Listing
&
{
contactPhone
:
string
|
null
;
isOwn
:
boolean
}
|
null
,
>
;
}
OS Service Hook for Marketplace.
Returns
{
feedStore
:
Writable
<
ListingPage
>
;
loadFeed
:
()
=>
Promise
<
void
>
;
loadMine
:
()
=>
Promise
<
void
>
;
markSold
:
(
id
:
number
)
=>
Promise
<
boolean
>
;
mineStore
:
Writable
<
ListingPage
>
;
postListing
:
(
input
:
CreateListingInput
)
=>
Promise
<
Listing
>
;
removeListing
:
(
id
:
number
)
=>
Promise
<
boolean
>
;
searchListings
:
(
q
:
string
)
=>
Promise
<
ListingPage
>
;
viewListing
:
(
id
:
number
,
)
=>
Promise
<
Listing
&
{
contactPhone
:
string
|
null
;
isOwn
:
boolean
}
|
null
,
>
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@mica/sdk (SDK contract v1)
Loading...
OS Service Hook for Marketplace.