get-mexican-data-by-curp
Version:
Verify CURP and obtain personal information from the Mexican government CURP. It scrapes official site and another providers.
14 lines (13 loc) • 378 B
TypeScript
import { Curp } from '../models';
import { Provider } from '../models';
import { Mexican } from '../models';
export declare class MexicanFinder {
private readonly providers;
private state;
private readonly startState;
constructor(...providers: Provider[]);
finalState(): string;
findByCurp(id: Curp): Promise<Mexican | {
error: string;
}>;
}