12345678910111213141516171819202122 |
- class ConfigObject {
- constructor () {
- this.loopTimeout = 5000;
- this.decimalPlaces = 8;
- this.intConvertRoundMode = 2;
- this.default_lang = 'pt';
- this.enable_type_casting = true;
- this.idle_input_interval = 5000;
- this.max_call_stack = 100;
- }
- setConfig (opts) {
- for (const key in opts) {
- if(Object.prototype.hasOwnProperty.call(this, key)){
- this[key] = opts[key];
- }
- }
- }
- }
- const config = new ConfigObject();
- export const Config = config;
|