When a key is first set oldValue will be undefined, and when a key is deleted newValue will be undefined. Watches the given key, calling callback on any changes. This resets known items to their default values, if defined by the defaults or schema option.onDidChange(key, callback) Reset items to their default values, as defined by the defaults or schema option. Get an item or defaultValue if the item does not exist.reset(.keys) Set multiple items at once.get(key, defaultValue?) Trying to set the type undefined, function, or symbol will result in a t(object) The instance is iterable so you can use it directly in a for…of t(key, value) You can use dot-notation in a key to access nested properties. This is useful if there are multiple processes changing the same config file, for example, if you want changes done in the main process to be reflected in a renderer process. Watch for any changes in the config file and call the callback for onDidChange or onDidAn圜hange if set. Download Security Update 2022-005 (Catalina) macOS Catalina Security Update 2022-005 (19H2026) is recommended for all users and improves the security of macOS. get ( 'unicorn' ) ) //=> '□' // Use dot-notation to access nested properties store. Const Store = require ( 'electron-store' ) const store = new Store ( ) store.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |