mirror of
https://github.com/selfxyz/self.git
synced 2026-02-19 02:24:25 -05:00
fix app build
This commit is contained in:
30
app/src/types/react-native-passport-reader.d.ts
vendored
Normal file
30
app/src/types/react-native-passport-reader.d.ts
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
declare module 'react-native-passport-reader' {
|
||||
interface ScanOptions {
|
||||
documentNumber: string;
|
||||
dateOfBirth: string;
|
||||
dateOfExpiry: string;
|
||||
quality?: number;
|
||||
}
|
||||
|
||||
interface PassportReader {
|
||||
scan(options: ScanOptions): Promise<{
|
||||
mrz: string;
|
||||
eContent: string;
|
||||
encryptedDigest: string;
|
||||
photo: {
|
||||
base64: string;
|
||||
};
|
||||
digestAlgorithm: string;
|
||||
signerInfoDigestAlgorithm: string;
|
||||
digestEncryptionAlgorithm: string;
|
||||
LDSVersion: string;
|
||||
unicodeVersion: string;
|
||||
encapContent: string;
|
||||
documentSigningCertificate: string;
|
||||
dataGroupHashes: string;
|
||||
}>;
|
||||
}
|
||||
|
||||
const PassportReader: PassportReader;
|
||||
export default PassportReader;
|
||||
}
|
||||
Reference in New Issue
Block a user