Move from TRPC to server actions

This commit is contained in:
Timothy Armes
2024-04-08 09:48:18 +02:00
parent cd83db2385
commit 0540ecc05a
25 changed files with 1802 additions and 1774 deletions
+4
View File
@@ -1,5 +1,6 @@
import { LatLngLiteral } from "leaflet";
import { ObjectId } from "mongodb";
import { SafeAction } from "next-safe-action";
import { z } from "zod";
export type Status = "scheduled" | "ongoing" | "finished" | "in-play";
@@ -92,3 +93,6 @@ export type ScrollableElement = Window | HTMLElement;
export type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
export type ExtractSafeActionResult<T> =
T extends SafeAction<infer Schema, infer Result> ? Result : never;