2.1.3 • Published 6 months ago

@types/danish-ssn v2.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for danish-ssn 2.1
// Project: https://github.com/mathiasvr/danish-ssn/
// Definitions by: Yuriy Guzenko <https://github.com/yuriyg86>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Fri, 03 Dec 2021 22:01:01 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Yuriy Guzenko.