1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-19 00:18:09 +00:00

fixed type

This commit is contained in:
Nebel 2022-08-24 22:07:33 +09:00
parent 87c5021a80
commit 34f4d26c84

View file

@ -23,7 +23,7 @@ async function updatePage(
return res.ok; return res.ok;
} }
async function fetchPage(id: number): Promise<Pages.RequestContentPage> { async function fetchPage(id: number): Promise<Pages.ResponsePage> {
const res = await fetch( const res = await fetch(
new URL(`/pages?id=eq.${id}`, import.meta.env.QUOT_API_URL) new URL(`/pages?id=eq.${id}`, import.meta.env.QUOT_API_URL)
); );