/** optimistic helper for node fetch */ export const fetchData = (...params: Parameters): Promise => fetch(...params).then(res => res.json()) as Promise;