UNPKG

french-ssn

Version:

🇫🇷 A parser / validator for French Social Security Number

29 lines • 794 B
import unknown, { UnknownField } from "./unknown"; declare const getCountry: (insee: string) => { insee: string; name: string; unknown: undefined; } | ({ insee: string; } & UnknownField); declare const getCounty: (insee: string) => { insee: string; name: string; unknown: undefined; } | ({ insee: string; } & UnknownField); export interface Place { country: UnknownField | ReturnType<typeof getCountry>; county: UnknownField | ReturnType<typeof getCounty>; city: UnknownField | { insee: string; }; } export declare const getParts: (insee: string) => { countyCode: string; code: string; }; declare const _default: (insee: string, year?: number | undefined) => Place; export default _default; //# sourceMappingURL=makePlace.d.ts.map