| Module: | @ember/debug |
|---|
Defined in packages/@ember/debug/lib/warn.ts:71
Available since v1.0.0
import { warn } from '@ember/debug'; Display a warning with the provided message.
import { warn } from '@ember/debug';
import tomsterCount from './tomster-counter'; // a module in my project
// Log a warning if we have more than 3 tomsters
warn('Too many tomsters!', tomsterCount <= 3, {
id: 'ember-debug.too-many-tomsters'
});
© 2022 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/4.9/functions/@ember%2Fdebug/warn