You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Definitions by: Milan Burda <https://github.com/miniak>, Brendan Forster <https://github.com/shiftkey>, Hari Juturu <https://github.com/juturu>
2
+
// Adapted from DefinitelyTyped: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/keytar/index.d.ts
3
+
4
+
declare module "keytar"{
5
+
/**
6
+
* Get the stored password for the service and account.
7
+
*
8
+
* @param service The string service name.
9
+
* @param account The string account name.
10
+
*
11
+
* @returns A promise for the password string.
12
+
*/
13
+
exportdeclarefunctiongetPassword(
14
+
service: string,
15
+
account: string
16
+
): Promise<string|null>;
17
+
18
+
/**
19
+
* Add the password for the service and account to the keychain.
20
+
*
21
+
* @param service The string service name.
22
+
* @param account The string account name.
23
+
* @param password The string password.
24
+
*
25
+
* @returns A promise for the set password completion.
26
+
*/
27
+
exportdeclarefunctionsetPassword(
28
+
service: string,
29
+
account: string,
30
+
password: string
31
+
): Promise<void>;
32
+
33
+
/**
34
+
* Delete the stored password for the service and account.
35
+
*
36
+
* @param service The string service name.
37
+
* @param account The string account name.
38
+
*
39
+
* @returns A promise for the deletion status. True on success.
40
+
*/
41
+
exportdeclarefunctiondeletePassword(
42
+
service: string,
43
+
account: string
44
+
): Promise<boolean>;
45
+
46
+
/**
47
+
* Find a password for the service in the keychain.
0 commit comments