mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix: add explicit return type - tokenEventSchema
This commit is contained in:
parent
dc711bce6a
commit
803b2abacc
1 changed files with 5 additions and 1 deletions
|
|
@ -17,7 +17,11 @@ export const proofSchema: z.ZodType<{
|
||||||
});
|
});
|
||||||
|
|
||||||
/** Decrypted content of a kind 7375 */
|
/** Decrypted content of a kind 7375 */
|
||||||
export const tokenEventSchema = z.object({
|
export const tokenEventSchema: z.ZodType<{
|
||||||
|
mint: string;
|
||||||
|
proofs: Array<z.infer<typeof proofSchema>>;
|
||||||
|
del?: string[];
|
||||||
|
}> = z.object({
|
||||||
mint: z.string().url(),
|
mint: z.string().url(),
|
||||||
proofs: proofSchema.array(),
|
proofs: proofSchema.array(),
|
||||||
del: z.string().array().optional(),
|
del: z.string().array().optional(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue