Function
warn (message, test, options) public
Module: | @ember/application |
---|
Defined in packages/ember-debug/lib/warn.js:63
Available since v1.0.0
import { warn } from '@ember/debug';
- message
- String
- A warning to display.
- test
- Boolean
- An optional boolean. If falsy, the warning will be displayed.
- options
- Object
- An object that can be used to pass a unique `id` for this warning. The `id` can be used by Ember debugging tools to change the behavior (raise, log, or silence) for that specific warning. The `id` should be namespaced by dots, e.g. "ember-debug.feature-flag-with-features-stripped"
Display a warning with the provided message.
- In a production build, this method is defined as an empty function (NOP). Uses of this method in Ember itself are stripped from the ember.prod.js build.
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/functions/@ember%2Fdebug/warn