Register a new deprecated field mapping.
This is useful for extending the built-in deprecation registry with custom or newly discovered deprecations.
The OCF object type
The deprecation mapping to register
// Register a new deprecation registerDeprecatedFieldMapping('SomeOcfType', { deprecatedField: 'old_field', replacementField: 'new_fields', deprecationType: 'singular_to_array', }); Copy
// Register a new deprecation registerDeprecatedFieldMapping('SomeOcfType', { deprecatedField: 'old_field', replacementField: 'new_fields', deprecationType: 'singular_to_array', });
Register a new deprecated field mapping.
This is useful for extending the built-in deprecation registry with custom or newly discovered deprecations.