Core
Framework v2.x
2

addDeprecation #

Adds a deprecation notice for a used component, this can be action/controller/parameters...

Arguments #

addDeprecation(version: string, message: string): void;

ArgumentsTypeDescription
version
string
Version where the used component has been deprecated
message
string
Warning message

Example #

request.addDeprecation('2.4.2', 'Mappings should be passed in the "mappings" property and not directly in the body.');