Added Bootstrap-Validator (#13657)

* Added Bootstrap-Validator

* StrictNullChecks => true

* Removed Patch Version
This commit is contained in:
Brady Liles
2017-01-03 07:58:01 -07:00
committed by Andy
parent 334e1d1363
commit b43f9bced0
4 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
/// <reference types="jquery" />
$('#myForm').validator();
$('#myForm').validator('update');
$('#myForm').validator('validate');
$('#myForm').validator('destroy');
$('#myForm').validator({
delay: 500,
html: false,
disable: false,
focus: true,
feedback: {},
custom: {}
});

20
bootstrap-validator/index.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
// Type definitions for bootstrap-validator 0.11
// Project: https://github.com/1000hz/bootstrap-validator
// Definitions by: Brady Liles <https://github.com/BradyLiles/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="jquery"/>
interface ValidatorOptions {
delay?: number;
html?: boolean;
disable?: boolean;
focus?: boolean;
feedback?: any;
custom?: any;
}
interface JQuery {
validator(options?: ValidatorOptions): JQuery;
validator(command: string): JQuery;
}

View File

@@ -0,0 +1,20 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"bootstrap-validator-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "../tslint.json" }