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:
MyPrototypeWhat 2025-08-15 18:11:43 +08:00
parent b099c9b0b3
commit bbc472c169

View File

@ -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 {