/
ai_sampletext
/
DiplomWork
Обзор
Документация
Войти
/
ai_sampletext
/
DiplomWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/motion-utils/src/errors.ts
22 строки
498 B
boolyshareyo
Initial commit
08 июн 2026, 16:00
08 июн 2026, 16:00
6216a29
Код
Авторство
О чём код?
import { noop } from "./noop" export type DevMessage = (check: boolean, message: string) => void let warning: DevMessage = noop let invariant: DevMessage = noop if (process.env.NODE_ENV !== "production") { warning = (check, message) => { if (!check && typeof console !== "undefined") { console.warn(message) } } invariant = (check, message) => { if (!check) { throw new Error(message) } } } export { warning, invariant }