@open-condo/miniapp-utils
Version:
A set of helper functions / components / hooks used to build new condo apps fast
17 lines (15 loc) • 354 B
TypeScript
/**
* Check whether it's a server or client environment
* @example
* if (!isSSR()) {
* console.log(window.location.href)
* }
*/
declare function isSSR(): boolean;
/**
* Check whether it's development environment or not
* @example
* const IS_DEBUG_LOGS_ENABLED = isDebug()
*/
declare function isDebug(): boolean;
export { isDebug, isSSR };