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