2
0

♻️ (billing) Refactor billing server code to trpc

This commit is contained in:
Baptiste Arnaud
2023-02-17 16:19:39 +01:00
parent 962438768e
commit b73282d810
38 changed files with 1565 additions and 367 deletions

View File

@ -0,0 +1,11 @@
import { z } from 'zod'
export const invoiceSchema = z.object({
id: z.string(),
url: z.string(),
amount: z.number(),
currency: z.string(),
date: z.number().nullable(),
})
export type Invoice = z.infer<typeof invoiceSchema>