MCPcopy
hub / github.com/vuejs/core / getCompatConfigForKey

Function getCompatConfigForKey

packages/runtime-core/src/compat/compatConfig.ts:554–564  ·  view source on GitHub ↗
(
  key: DeprecationTypes | 'MODE',
  instance: ComponentInternalInstance | null,
)

Source from the content-addressed store, hash-verified

552}
553
554export function getCompatConfigForKey(
555 key: DeprecationTypes | 'MODE',
556 instance: ComponentInternalInstance | null,
557): CompatConfig[DeprecationTypes | 'MODE'] {
558 const instanceConfig =
559 instance && (instance.type as ComponentOptions).compatConfig
560 if (instanceConfig && key in instanceConfig) {
561 return instanceConfig[key]
562 }
563 return globalCompatConfig[key]
564}
565
566export function isCompatEnabled(
567 key: DeprecationTypes,

Callers 2

warnDeprecationFunction · 0.85
isCompatEnabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected