diff --git a/types/electron-store/index.d.ts b/types/electron-store/index.d.ts index 6a30daa8fc..1e687fee0e 100644 --- a/types/electron-store/index.d.ts +++ b/types/electron-store/index.d.ts @@ -4,6 +4,8 @@ // Jakub Synowiec // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// + declare module 'electron-store' { type JSONValue = string | number | boolean | JSONObject | JSONArray; @@ -28,6 +30,11 @@ declare module 'electron-store' { * Storage file location. Don't specify this unless absolutely necessary! */ cwd?: string; + + /** + * When specified, the store will be encrypted using the aes-256-cbc encryption algorithm. + */ + encryptionKey?: string | Buffer; } class ElectronStore implements Iterable<[keyof T, JSONValue]> {