UNPKG
@thunderstorefront/api-mock
Version:
latest (0.3.1)
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
Create Nuxt extendable layer with this GitHub template.
@thunderstorefront/api-mock
/
server
/
mocks
/
wishlist.ts
10 lines
(8 loc)
•
245 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ faker }
from
'@faker-js/faker'
;
import
type
{
Wishlist
}
from
'@thunderstorefront/types'
;
// Mock for Wishlist
export
const
mockWishlist = ():
Wishlist
=>
({
id
: faker.
string
.
uuid
(),
itemsCount
: faker.
number
.
int
(),
items
: [] });