Core
Framework v2.x
2

addDeprecation #

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

Arguments #

Copied to clipboard!
addDeprecation(version: string, message: string): void;

Arguments Type Description
version
string
Version where the used component has been deprecated
message
string
Warning message

Example #

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