Fixed types

This commit is contained in:
Umar Adilov 2025-12-03 19:22:59 +05:00
parent f66a4c2a6c
commit 13b5c06780
2 changed files with 20 additions and 3 deletions

9
.opencode/package.json Normal file
View File

@ -0,0 +1,9 @@
{
"dependencies": {
"@opencode-ai/plugin": "1.0.126",
"@types/micromatch": "^4.0.10",
"axios": "^1.13.2",
"micromatch": "^4.0.8",
"zod": "^4.1.13"
}
}

View File

@ -16,9 +16,17 @@ const axios = new Axios({
}); });
const updateAppStatus = async (status: "Errored" | "Active" | "Pending") => { const updateAppStatus = async (status: "Errored" | "Active" | "Pending") => {
await axios.put("/", { await axios.put(
"/",
JSON.stringify({
status, status,
}); }),
{
headers: {
"Content-Type": "application/json",
},
}
);
}; };
export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => { export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => {