From 3a4b4eecc8220ca87f558fb12dd31eef81239088 Mon Sep 17 00:00:00 2001 From: Jose Martinez Date: Wed, 10 Aug 2022 12:25:21 -0400 Subject: [PATCH] fix: AvailableResult type missing property --- readme.md | 1 + src/definitions.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/readme.md b/readme.md index dbbc545..0377733 100644 --- a/readme.md +++ b/readme.md @@ -82,6 +82,7 @@ NativeBiometric.deleteCredentials({ | -------------- | ------- | -------------- | -------------------------------------------------------- | | `isAvailable` | | `boolean` | Specifies if the devices has biometric enrollment | | `biometryType` | | `BiometryType` | Specifies the available biometric hardware on the device | +| `errorCode?` | | `number` | Error code returned by the native API | ### BiometryType - enum diff --git a/src/definitions.ts b/src/definitions.ts index 0262ea6..3e04120 100644 --- a/src/definitions.ts +++ b/src/definitions.ts @@ -22,6 +22,7 @@ export interface IsAvailableOptions { export interface AvailableResult { isAvailable: boolean; biometryType: BiometryType; + errorCode?: number; } export interface BiometricOptions {