Add types for JSON-serializable values

This commit is contained in:
Jakub Synowiec
2018-02-17 16:09:46 +01:00
parent a9956ccc97
commit 3189dabe5c
+8
View File
@@ -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.