From b63b909625025738dfad77ea127053abe261fca4 Mon Sep 17 00:00:00 2001 From: ItMaga Date: Sat, 22 Apr 2023 23:57:28 +0300 Subject: [PATCH] refactor: use declarative access to branded type --- lib/generators/BrandedGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/BrandedGenerator.ts b/lib/generators/BrandedGenerator.ts index 00cd9f8..e6b91fb 100644 --- a/lib/generators/BrandedGenerator.ts +++ b/lib/generators/BrandedGenerator.ts @@ -4,7 +4,7 @@ import type BaseGenerator from './BaseGenerator'; export default class BrandedGenerator> implements BaseGenerator { public generate(schema: T): z.infer { - const mockGenerator = new MockGenerator(schema._def.type); + const mockGenerator = new MockGenerator(schema.unwrap()); return mockGenerator.generate(); } }