Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 18x | import { z } from "zod";
import type { TRPCMutationInput } from "~app/trpc";
import { currencyCodeSchema, receiptNameSchema } from "~app/utils/validation";
import { temporalSchemas } from "~utils/temporal";
export type { Item, Payer } from "~app/features/receipt-components/state";
export const formSchema = z.object({
name: receiptNameSchema,
currencyCode: currencyCodeSchema,
issued: temporalSchemas.plainDate,
});
export type Form = z.infer<typeof formSchema>;
export type Participant = NonNullable<
TRPCMutationInput<"receipts.add">["participants"]
>[number] & { createdAt: Temporal.ZonedDateTime };
|