Skip to content

Commit

Permalink
Merge pull request #59 from boreal-is/biometryType_type_alias
Browse files Browse the repository at this point in the history
Typescript - Add type alias for biometryType
  • Loading branch information
NappyPirate authored Dec 29, 2019
2 parents 92861b9 + 515f94c commit cfea292
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ import { NativeModules } from 'react-native';

const { ReactNativeBiometrics: bridge } = NativeModules;

/**
* Type alias for possible biometry types
*/
export type BiometryType = 'TouchID' | 'FaceID' | 'Biometrics';

interface IsSensorAvailableResult {
available: boolean
biometryType?: string
biometryType?: BiometryType
error?: string
}

Expand Down

0 comments on commit cfea292

Please sign in to comment.