mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
Add types for JSON-serializable values
This commit is contained in:
Vendored
+8
@@ -5,6 +5,14 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module 'electron-store' {
|
||||
type JSONValue = string | number | boolean | JSONObject | JSONArray;
|
||||
|
||||
interface JSONObject {
|
||||
[x: string]: JSONValue;
|
||||
}
|
||||
|
||||
interface JSONArray extends Array<JSONValue> {}
|
||||
|
||||
interface ElectronStoreOptions {
|
||||
/**
|
||||
* Default config.
|
||||
|
||||
Reference in New Issue
Block a user