@types/danish-ssn
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

Installation

npm install --save @types/danish-ssn

Summary

This package contains type definitions for danish-ssn (https://github.com/mathiasvr/danish-ssn/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/danish-ssn.

index.d.ts

declare namespace cpr {
    function isValid(ssn: string): boolean;
    function validate(ssn: string): string;
    function validForDate(date: Date): string[];

    interface DanishSsnStatus {
        cpr: string;
        valid: boolean;
        date: Date;
        sex: "Female" | "Male";
    }
}

declare function cpr(ssn: string): cpr.DanishSsnStatus;

export = cpr;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Yuriy Guzenko.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/danish-ssn

Weekly Downloads

112

Version

2.1.3

License

MIT

Unpacked Size

3.29 kB

Total Files

5

Last publish

Collaborators

  • types