electron-conf
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0
@@ -31,2 +31,3 @@ type ConfOptions = { | ||
get<K extends string, V = unknown>(key: Exclude<K, keyof T>, defaultValue?: V): Promise<V>; | ||
get(key: string, defaultValue?: unknown): Promise<unknown>; | ||
/** | ||
@@ -52,2 +53,3 @@ * Set an item or multiple items at once. | ||
set(object: Partial<T>): Promise<void>; | ||
set<K extends keyof T>(key: Partial<T> | K | string, value?: T[K] | unknown): Promise<void>; | ||
/** | ||
@@ -68,2 +70,3 @@ * Check if an item exists. | ||
delete<Key extends keyof T>(key: Key): Promise<void>; | ||
delete(key: string): Promise<void>; | ||
/** | ||
@@ -70,0 +73,0 @@ * Delete all items. This resets known items to their default values, if |
{ | ||
"name": "electron-conf", | ||
"version": "1.0.0-alpha.0", | ||
"version": "1.0.0", | ||
"description": "Simple data persistence for your Electron app - save and load user settings, app state, cache, etc", | ||
@@ -5,0 +5,0 @@ "main": "./dist/main.cjs", |
@@ -99,3 +99,4 @@ # electron-conf | ||
> [!NOTE] > `Conf` for the renderer process, only supports the `name` option. | ||
> [!NOTE] | ||
> `Conf` for the renderer process, only supports the `name` option. | ||
@@ -263,3 +264,3 @@ #### `dir` | ||
```js | ||
conf.set({ foo: 1, a: 'b' }) | ||
conf.set({ foo: 'boo', bar: { baz: 1 } }) | ||
``` | ||
@@ -266,0 +267,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
49334
1171
0
330