style(v2/providers): prettier reflow of provider-container-registry signatures
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -38,16 +38,11 @@ export interface ProviderContainerContribution {
|
|||||||
env?: Record<string, string>;
|
env?: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderContainerConfigFn = (
|
export type ProviderContainerConfigFn = (ctx: ProviderContainerContext) => ProviderContainerContribution;
|
||||||
ctx: ProviderContainerContext,
|
|
||||||
) => ProviderContainerContribution;
|
|
||||||
|
|
||||||
const registry = new Map<string, ProviderContainerConfigFn>();
|
const registry = new Map<string, ProviderContainerConfigFn>();
|
||||||
|
|
||||||
export function registerProviderContainerConfig(
|
export function registerProviderContainerConfig(name: string, fn: ProviderContainerConfigFn): void {
|
||||||
name: string,
|
|
||||||
fn: ProviderContainerConfigFn,
|
|
||||||
): void {
|
|
||||||
if (registry.has(name)) {
|
if (registry.has(name)) {
|
||||||
throw new Error(`Provider container config already registered: ${name}`);
|
throw new Error(`Provider container config already registered: ${name}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user