( key: DeprecationTypes | 'MODE', instance: ComponentInternalInstance | null, )
| 552 | } |
| 553 | |
| 554 | export 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 | |
| 566 | export function isCompatEnabled( |
| 567 | key: DeprecationTypes, |
no outgoing calls
no test coverage detected