mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix: add explicit return type
This commit is contained in:
parent
a002b1a005
commit
dc711bce6a
1 changed files with 8 additions and 1 deletions
|
|
@ -1,6 +1,13 @@
|
||||||
import { z } from 'zod';
|
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(),
|
id: z.string(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
secret: z.string(),
|
secret: z.string(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue