( key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[] )
| 607 | * lead to runtime error if compat is disabled. (warn in all cases) |
| 608 | */ |
| 609 | export function softAssertCompatEnabled( |
| 610 | key: DeprecationTypes, |
| 611 | instance: ComponentInternalInstance | null, |
| 612 | ...args: any[] |
| 613 | ): boolean { |
| 614 | if (__DEV__) { |
| 615 | warnDeprecation(key, instance, ...args) |
| 616 | } |
| 617 | return isCompatEnabled(key, instance) |
| 618 | } |
| 619 | |
| 620 | /** |
| 621 | * Use this for features with the same syntax but with mutually exclusive |
no test coverage detected