Update type script definitions

This commit is contained in:
Joel Arvidsson 2017-01-10 23:07:11 +01:00
parent eb9093aed7
commit 28232bf029

View File

@ -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>;
} }