From 0cea37b3909f524bc60cd9e9912b378db5866dcb Mon Sep 17 00:00:00 2001 From: Marcus de Moura Date: Wed, 19 Jun 2024 11:53:33 +0200 Subject: [PATCH] fix: passthrough access props --- src/imports/model/Access.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/imports/model/Access.ts b/src/imports/model/Access.ts index 200e9f38..c7e887e1 100644 --- a/src/imports/model/Access.ts +++ b/src/imports/model/Access.ts @@ -1,11 +1,13 @@ import { z } from 'zod'; -export const AccessSchema = z.object({ - type: z.literal('access'), - _id: z.string(), - document: z.string(), - name: z.string(), - collection: z.string().optional(), -}); +export const AccessSchema = z + .object({ + type: z.literal('access'), + _id: z.string(), + document: z.string(), + name: z.string(), + collection: z.string().optional(), + }) + .passthrough(); export type Access = z.infer;