@merqva/telegram-passport
Version:
Decrypt/Parse incoming Telegram Passport data
17 lines (11 loc) • 397 B
text/typescript
import { RequestedFields, SecureValue } from './interfaces';
export type EncryptedPassportElementType = keyof RequestedFields;
export type Indexable<T = unknown> = {
[key: string]: T;
};
export type SecureDataKey = Exclude<
EncryptedPassportElementType,
'phone_number' | 'email' | 'nonce'
>;
export type SecureValueKey = keyof SecureValue;
export type StringOrBuffer = string | Buffer;