DefinitelyTyped/types/swe-validation/index.d.ts
Robert Hjalmers 2a84417fe0 added typings for swe-validation (#23778)
* Create index.d.ts

* Create tslint.json

* Create tsconfig.json

* Update index.d.ts

* used template

* fixed swe-validation typings and test
2018-04-09 12:12:38 -07:00

28 lines
570 B
TypeScript

// Type definitions for swe-validation 1.0
// Project: https://github.com/keype/swe-validation
// Definitions by: Robert Hjalmers <https://github.com/hjalmers>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface cin {
isValid: boolean;
corporation: {
type: string;
id: string;
};
}
interface ssn {
isValid: boolean;
person?: {
type: string;
sex: string;
ssn: string;
};
}
declare let validate: {
ssn(number: number): ssn;
cin(number: number): cin;
};
export = validate;