mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Add type definitions for vali-date
This commit is contained in:
8
types/vali-date/index.d.ts
vendored
Normal file
8
types/vali-date/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
// Type definitions for vali-date 1.0
|
||||
// Project: https://github.com/SamVerschueren/vali-date
|
||||
// Definitions by: Sam Verschueren <https://github.com/SamVerschueren>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function valiDate(input: string): boolean;
|
||||
declare namespace valiDate { }
|
||||
export = valiDate;
|
||||
25
types/vali-date/tsconfig.json
Normal file
25
types/vali-date/tsconfig.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"vali-date-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/vali-date/tslint.json
Normal file
3
types/vali-date/tslint.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
5
types/vali-date/vali-date-tests.ts
Normal file
5
types/vali-date/vali-date-tests.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as valiDate from 'vali-date';
|
||||
|
||||
valiDate('foo');
|
||||
valiDate('bar');
|
||||
valiDate('2017-05-10');
|
||||
Reference in New Issue
Block a user