mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 04:31:27 +08:00
refactor(types): mark OcrProvider.config as deprecated
The config property is being phased out in favor of a more streamlined type structure. This change marks it as deprecated while maintaining backward compatibility.
This commit is contained in:
parent
08d8f70752
commit
90e02e64b7
@ -92,11 +92,13 @@ export type OcrProviderConfig =
|
||||
export const OcrProviderSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
capabilities: OcrProviderCapabilityRecordSchema,
|
||||
config: OcrProviderBaseConfigSchema.optional()
|
||||
capabilities: OcrProviderCapabilityRecordSchema
|
||||
})
|
||||
|
||||
export type OcrProvider = z.infer<typeof OcrProviderSchema>
|
||||
export type OcrProvider = z.infer<typeof OcrProviderSchema> & {
|
||||
/** @deprecated */
|
||||
config?: OcrProviderBaseConfig
|
||||
}
|
||||
|
||||
export type OcrApiProviderConfig = OcrProviderBaseConfig & {
|
||||
api: OcrProviderApiConfig
|
||||
|
||||
Loading…
Reference in New Issue
Block a user