mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-07 13:15:59 +08:00
30 lines
509 B
TypeScript
30 lines
509 B
TypeScript
import ElectronConfig = require('electron-config');
|
|
|
|
new ElectronConfig({
|
|
defaults: {},
|
|
});
|
|
|
|
new ElectronConfig({
|
|
name: 'myConfiguration',
|
|
});
|
|
|
|
const electronConfig = new ElectronConfig();
|
|
|
|
electronConfig.set('foo', 'bar');
|
|
electronConfig.set({
|
|
foo: 'bar',
|
|
foo2: 'bar2',
|
|
});
|
|
electronConfig.delete('foo');
|
|
electronConfig.get('foo');
|
|
electronConfig.has('foo');
|
|
electronConfig.clear();
|
|
electronConfig.size;
|
|
electronConfig.store;
|
|
|
|
electronConfig.store = {
|
|
foo: 'bar',
|
|
};
|
|
|
|
electronConfig.path;
|