diff --git a/src/logging.ts b/src/logging.ts index ee4a0ef..51d8cfd 100644 --- a/src/logging.ts +++ b/src/logging.ts @@ -1,4 +1,3 @@ -import { ZodFirstPartyTypeKind } from "zod"; import { RTFSupportedZodTypes } from "./supportedZodTypes"; const shownWarnings = { @@ -19,16 +18,8 @@ export function duplicateTypeError() { ); } -export function printWarningsForSchema(type: RTFSupportedZodTypes) { - if ( - !shownWarnings.enum && - type._def.typeName === ZodFirstPartyTypeKind.ZodEnum - ) { - err( - "support for z.enum() is deprecated and will be removed in future versions. Prefer z.string() / z.number() etc for dropdowns, selects, and radio buttons. \nSee https://github.com/iway1/react-ts-form/blob/main/field-examples.md for examples" - ); - shownWarnings.enum = true; - } +export function printWarningsForSchema(_type: RTFSupportedZodTypes) { + // placeholder in case we need future schema warnings } export function printUseEnumWarning() {