From 0bdb9a9f5e6f34dc28f122cc1a2035023d6e9af5 Mon Sep 17 00:00:00 2001 From: Luma Date: Wed, 9 Oct 2024 18:07:35 +0900 Subject: [PATCH] add readonly to BRAND-ed internal type structure --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 0767073c5..c7b027961 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4902,7 +4902,7 @@ export interface ZodBrandedDef extends ZodTypeDef { export const BRAND: unique symbol = Symbol("zod_brand"); export type BRAND = { - [BRAND]: { [k in T]: true }; + readonly [BRAND]: { readonly [k in T]: true }; }; export class ZodBranded<