Nástřel přidávání pizzy

This commit is contained in:
2023-06-05 21:14:35 +02:00
parent 5fd4edee94
commit 2e80faa6b8
5 changed files with 48 additions and 12 deletions

View File

@@ -83,7 +83,7 @@ const downloadPizzy = async () => {
/**
* Vrátí pizzy z tempu, nebo čerstvě stažené, pokud v tempu nejsou.
*/
export const fetchPizzy = async () => {
export const fetchPizzy = async (): Promise<Pizza[]> => {
const tmpDir = os.tmpdir();
const date_ob = new Date();
const date = ("0" + date_ob.getDate()).slice(-2);