rhine-var
Version:
Variables that support multi-user collaboration and persistence, making collaboration and variable operations as simple as possible, with strict and well-defined type hints.
21 lines (20 loc) • 694 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.enableRhineVarLog = enableRhineVarLog;
exports.enableRhineVarSyncHandshakeCheck = enableRhineVarSyncHandshakeCheck;
exports.getRhineVarConfig = getRhineVarConfig;
class RhineVarConfig {
}
RhineVarConfig.ENABLE_LOG = false;
RhineVarConfig.ENABLE_ERROR = true;
RhineVarConfig.ENABLE_SYNC_HANDSHAKE_CHECK = false;
exports.default = RhineVarConfig;
function enableRhineVarLog(value) {
RhineVarConfig.ENABLE_LOG = Boolean(value);
}
function enableRhineVarSyncHandshakeCheck(value) {
RhineVarConfig.ENABLE_SYNC_HANDSHAKE_CHECK = Boolean(value);
}
function getRhineVarConfig() {
return RhineVarConfig;
}