Effort to transition to TypeScript

Remove commit warnings
This commit is contained in:
Michał Gdula 2024-05-02 19:10:21 +01:00
parent 4f0ecd33e4
commit 1486c1b70a
18 changed files with 93 additions and 87 deletions

View file

@ -1,4 +1,4 @@
import Items from '%/lib/test-data.js';
import TestData from '%/lib/test-data.ts';
export async function getPopularToday() {
const res = await fetch("/api/items")
@ -15,7 +15,7 @@ export function getMenuItems() {
return [
{
name: "Main Menu",
items: Items,
items: TestData,
},
{
name: "Breakfast",
@ -23,7 +23,7 @@ export function getMenuItems() {
},
{
name: "Seasonal",
items: Items,
items: TestData,
},
];
}