From dc711bce6af39578aa5c2248caa734b39f9fcd41 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Tue, 11 Mar 2025 11:49:39 -0300 Subject: [PATCH] fix: add explicit return type --- packages/cashu/schemas.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/cashu/schemas.ts b/packages/cashu/schemas.ts index 1860f874..f631464d 100644 --- a/packages/cashu/schemas.ts +++ b/packages/cashu/schemas.ts @@ -1,6 +1,13 @@ import { z } from 'zod'; -export const proofSchema = z.object({ +export const proofSchema: z.ZodType<{ + id: string; + amount: number; + secret: string; + C: string; + dleq?: { s: string; e: string; r?: string }; + dleqValid?: boolean; +}> = z.object({ id: z.string(), amount: z.number(), secret: z.string(),