mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 21:01:32 +08:00
refactor(types): modify ProviderId type definition for improved flexibility
- Updated ProviderId type from an intersection of keyof ExtensibleProviderSettingsMap and string to a union, allowing for greater compatibility with dynamic provider settings.
This commit is contained in:
parent
b099c9b0b3
commit
bbc472c169
@ -65,7 +65,7 @@ export class ProviderError extends Error {
|
||||
}
|
||||
|
||||
// 动态ProviderId类型 - 支持运行时扩展
|
||||
export type ProviderId = keyof ExtensibleProviderSettingsMap & string
|
||||
export type ProviderId = keyof ExtensibleProviderSettingsMap | (string & {})
|
||||
|
||||
// Provider类型注册工具
|
||||
export interface ProviderTypeRegistrar {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user