Skip to content

Commit

Permalink
add readonly to BRAND-ed internal type structure
Browse files Browse the repository at this point in the history
  • Loading branch information
LumaKernel committed Oct 9, 2024
1 parent 3032e24 commit 0bdb9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4902,7 +4902,7 @@ export interface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {

export const BRAND: unique symbol = Symbol("zod_brand");
export type BRAND<T extends string | number | symbol> = {
[BRAND]: { [k in T]: true };
readonly [BRAND]: { readonly [k in T]: true };
};

export class ZodBranded<
Expand Down

0 comments on commit 0bdb9a9

Please sign in to comment.