diff --git a/deno/lib/types.ts b/deno/lib/types.ts index 98bdb61c4..f5f2753a9 100644 --- a/deno/lib/types.ts +++ b/deno/lib/types.ts @@ -369,9 +369,8 @@ export abstract class ZodType< this.transform = this.transform.bind(this); this.default = this.default.bind(this); this.describe = this.describe.bind(this); - - this.isNullable = this.isNullable.bind(this); this.isOptional = this.isOptional.bind(this); + this.isNullable = this.isNullable.bind(this); } optional(): ZodOptional { diff --git a/src/types.ts b/src/types.ts index bb0b7e100..3e3f8c297 100644 --- a/src/types.ts +++ b/src/types.ts @@ -369,9 +369,8 @@ export abstract class ZodType< this.transform = this.transform.bind(this); this.default = this.default.bind(this); this.describe = this.describe.bind(this); - - this.isNullable = this.isNullable.bind(this); this.isOptional = this.isOptional.bind(this); + this.isNullable = this.isNullable.bind(this); } optional(): ZodOptional {