mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Create index.d.ts * Create tslint.json * Create tsconfig.json * Update index.d.ts * used template * fixed swe-validation typings and test
28 lines
570 B
TypeScript
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;
|