UNPKG

reakit-warning

Version:

Reakit warning

11 lines (10 loc) 334 B
/** * Logs `messages` to the console using `console.warn` based on a `condition`. * * @example * import { warning } from "reakit-warning"; * * warning(true, "a", "b"); // console.warn("a", "\n", "b") * warning(false, "a", "b"); // does nothing */ export declare function warning(condition: boolean, ...messages: any[]): void;