MCPcopy
hub / github.com/continuedev/continue / mergeOverrides

Function mergeOverrides

packages/config-yaml/src/load/unroll.ts:832–842  ·  view source on GitHub ↗
(
  block: T,
  overrides: Partial<T>,
)

Source from the content-addressed store, hash-verified

830}
831
832export function mergeOverrides<T extends Record<string, any>>(
833 block: T,
834 overrides: Partial<T>,
835): T {
836 for (const key in overrides) {
837 if (overrides.hasOwnProperty(key)) {
838 block[key] = overrides[key]!;
839 }
840 }
841 return block;
842}
843
844function formatZodError(error: any): string {
845 if (error.errors && Array.isArray(error.errors)) {

Callers 1

unrollBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected