From bb85d3b472d3bd12e62df5c3ea830fd519551e7a Mon Sep 17 00:00:00 2001 From: farreldarian Date: Wed, 10 Apr 2024 23:32:22 +0700 Subject: [PATCH] accept any string --- packages/generator/src/lib/config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/generator/src/lib/config.ts b/packages/generator/src/lib/config.ts index 4c67dfd..3d154fc 100644 --- a/packages/generator/src/lib/config.ts +++ b/packages/generator/src/lib/config.ts @@ -3,11 +3,10 @@ import { type Output, type SchemaIssues, flatten, - literal, object, optional, safeParse, - union, + string, } from 'valibot' import { DateMode } from '~/shared/date-mode' import { ModuleResolution } from '~/shared/generator-context/module-resolution' @@ -17,7 +16,7 @@ const Config = object({ relationalQuery: withDefault(optional(BooleanInStr), true), moduleResolution: optional(ModuleResolution), verbose: optional(BooleanInStr), - formatter: optional(union([literal('prettier'), literal('biome')])), + formatter: optional(string()), dateMode: optional(DateMode), }) export type Config = Output