addDeprecation #
Adds a deprecation notice for a used component, this can be action/controller/parameters...
Arguments #
addDeprecation(version: string, message: string): void;
Arguments | Type | Description |
---|---|---|
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.');
Edit this page on Github(opens new window)