UNPKG

@carbon/react

Version:

React components for the Carbon Design System

18 lines (17 loc) 532 B
/** * Copyright IBM Corp. 2016, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ /** * Logs a warning. * * The warning is only logged if the condition is not met and * `process.env.NODE_ENV !== 'production'` is truthy. * * @param condition - Condition to evaluate. * @param message - Warning message. * @throws Error if no `message` is provided. */ export declare const warning: (condition: boolean, message: string) => void;