diff --git a/src/actions/index.ts b/src/actions/index.ts index 4e02e01..91bb5f4 100644 --- a/src/actions/index.ts +++ b/src/actions/index.ts @@ -1,4 +1,4 @@ -import { defineAction } from "astro:actions"; +import { defineAction, type SafeResult } from "astro:actions"; import { db, Idea } from "astro:db"; import { z } from "astro:content"; @@ -13,7 +13,9 @@ interface Server { ideas: { save: ReturnType; }; - handler: (input: FormData) => Promise; + handler: (input: FormData) => Promise>; + queryString: string; + orThrow: (input: FormData) => Promise>; } export const server: Server = {