import { DateTime, Duration } from 'luxon'; import { getShoppingList, ShoppingList } from './'; // import { getShoppingList } from './services'; // import { ShoppingList } from './types'; export const app = async (): Promise => { const date = DateTime.local().plus( Duration.fromObject({ weeks: 2, }) ); const shoppingList: ShoppingList = await getShoppingList(date) ?? []; try { shoppingList.forEach((item: string | null) => { console.log(item); }); } catch (error) { console.error(error); } }; app();