Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@types/react-native-keychain

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-native-keychain - npm Package Compare versions

Comparing version
3.0.0
to
3.1.0
+9
-17
react-native-keychain/package.json
{
"name": "@types/react-native-keychain",
"version": "3.0.0",
"description": "TypeScript definitions for react-native-keychain",
"license": "MIT",
"contributors": [
{
"name": "David Evans Farinha",
"url": "https://github.com/DavidFarinha",
"githubUsername": "DavidFarinha"
}
],
"version": "3.1.0",
"typings": null,
"description": "Stub TypeScript definitions entry for react-native-keychain, which provides its own types definitions",
"main": "",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "df1ab0f54f414dcb43888f0873b7ac81cb1e23e727d98243d9a6a3b4f060e6dd",
"typeScriptVersion": "2.1"
"author": "",
"repository": "https://github.com/oblador/react-native-keychain",
"license": "MIT",
"dependencies": {
"react-native-keychain": "*"
}
}

@@ -1,16 +0,3 @@

# Installation
> `npm install --save @types/react-native-keychain`
This is a stub types definition for react-native-keychain (https://github.com/oblador/react-native-keychain).
# Summary
This package contains type definitions for react-native-keychain (https://github.com/oblador/react-native-keychain).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/react-native-keychain
Additional Details
* Last updated: Tue, 08 May 2018 17:01:00 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by David Evans Farinha <https://github.com/DavidFarinha>.
react-native-keychain provides its own type definitions, so you don't need @types/react-native-keychain installed!
// Type definitions for react-native-keychain 3.0
// Project: https://github.com/oblador/react-native-keychain
// Definitions by: David Evans Farinha <https://github.com/DavidFarinha>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export interface UserCredentials {
username: string;
password: string;
}
export interface SharedWebCredentials {
server: string;
username: string;
password: string;
}
export interface Options {
accessControl?: SecAccessControl;
accessGroup?: string;
accessible?: SecAccessible;
authenticationPrompt?: string;
authenticationType?: LAPolicy;
service?: string;
}
export type SecAccessible =
'AccessibleWhenUnlocked'
| 'AccessibleAfterFirstUnlock'
| 'AccessibleAlways'
| 'AccessibleWhenPasscodeSetThisDeviceOnly'
| 'AccessibleWhenUnlockedThisDeviceOnly'
| 'AccessibleAfterFirstUnlockThisDeviceOnly'
| 'AccessibleAlwaysThisDeviceOnly';
export type SecAccessControl =
'UserPresence'
| 'BiometryAny'
| 'BiometryCurrentSet'
| 'DevicePasscode'
| 'ApplicationPassword'
| 'BiometryAnyOrDevicePasscode'
| 'BiometryCurrentSetOrDevicePasscode';
export type LAPolicy = 'Authentication' | 'AuthenticationWithBiometrics';
export function canImplyAuthentication(options?: Options): Promise<boolean>;
export function getSupportedBiometryType(): Promise<string | null>;
export function setInternetCredentials(
server: string,
username: string,
password: string,
options?: Options
): Promise<boolean>;
export function getInternetCredentials(
server: string
): Promise<UserCredentials>;
export function resetInternetCredentials(
server: string
): Promise<boolean>;
export function setGenericPassword(
username: string,
password: string,
serviceOrOptions?: string | Options
): Promise<boolean>;
export function getGenericPassword(
serviceOrOptions?: string | Options
): Promise<boolean | {service: string, username: string, password: string}>;
export function resetGenericPassword(
serviceOrOptions?: string | Options
): Promise<boolean>;
export function requestSharedWebCredentials(
): Promise<SharedWebCredentials>;
export function setSharedWebCredentials(
server: string,
username: string,
password: string
): Promise<boolean>;