mirror of
https://github.com/status-im/react-native-keychain.git
synced 2025-02-28 04:40:41 +00:00
Update type script definitions
This commit is contained in:
parent
eb9093aed7
commit
28232bf029
32
typings/react-native-keychain.d.ts
vendored
32
typings/react-native-keychain.d.ts
vendored
@ -5,39 +5,43 @@ declare module 'react-native-keychain' {
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface SharedWebCredentials {
|
||||
server: string;
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
function setInternetCredentials(
|
||||
server: string,
|
||||
username: string,
|
||||
password: string,
|
||||
callback?: (error?: Error) => void
|
||||
password: string
|
||||
): Promise<void>;
|
||||
|
||||
function getInternetCredentials(
|
||||
server: string,
|
||||
callback?: (error?: Error, username?: string, password?: string) => void
|
||||
server: string
|
||||
): Promise<UserCredentials>;
|
||||
|
||||
function resetInternetCredentials(
|
||||
server: string,
|
||||
callback?: (error?: Error) => void
|
||||
server: string
|
||||
): Promise<void>;
|
||||
|
||||
function setGenericPassword(
|
||||
username: string,
|
||||
password: string,
|
||||
service?: string,
|
||||
callback?: (error?: Error) => void
|
||||
service?: string
|
||||
): Promise<void>;
|
||||
|
||||
|
||||
function getGenericPassword(
|
||||
service?: string,
|
||||
callback?: (error?: Error, result?: string) => void
|
||||
service?: string
|
||||
): Promise<void>;
|
||||
|
||||
function resetGenericPassword (
|
||||
service?: string,
|
||||
callback?: (error?: Error) => void
|
||||
function requestSharedWebCredentials (
|
||||
): Promise<SharedWebCredentials>;
|
||||
|
||||
function setSharedWebCredentials(
|
||||
server: string,
|
||||
username: string,
|
||||
password: string
|
||||
): Promise<void>;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user