diff --git a/packages/core/index.d.ts b/packages/core/index.d.ts index d4e4e9fb9b..aea34c3614 100644 --- a/packages/core/index.d.ts +++ b/packages/core/index.d.ts @@ -324,7 +324,7 @@ declare module '@rjsf/core' { export function isConstant(schema: JSONSchema7): boolean; - export function toConstant(schema: JSONSchema7): JSONSchema7Type | JSONSchema7['const'] | Error; + export function toConstant(schema: JSONSchema7): JSONSchema7Type | JSONSchema7['const']; export function isSelect(_schema: JSONSchema7, definitions?: FieldProps['registry']['definitions']): boolean;