tc-check
Version:
A Node.js and TypeScript package to validate Turkish citizens using first name, last name, birth year, and T.C. Kimlik Number via the official government API.
12 lines (11 loc) • 427 B
TypeScript
import { Person } from '../types/person';
import { Result } from '../types/result';
import { IAPIService } from './apiService';
import { IValidator } from './validator';
export declare class VerificationService {
private validator;
private apiService;
constructor(validator: IValidator, apiService: IAPIService);
verify(person: Person): Promise<Result>;
verifyBatch(persons: Person[]): Promise<Result[]>;
}