14 lines
288 B
TypeScript
14 lines
288 B
TypeScript
import { defineStore } from 'pinia'
|
|
import { ref } from 'vue'
|
|
import { Game } from '@/interfaces/game'
|
|
|
|
export const useGamelistStore = defineStore('gamelist', () => {
|
|
const list = ref([] as Game[])
|
|
|
|
function set(_list: Game[]) {
|
|
list.value = _list
|
|
}
|
|
|
|
return { list, set }
|
|
})
|