mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Added Bootstrap-Validator (#13657)
* Added Bootstrap-Validator * StrictNullChecks => true * Removed Patch Version
This commit is contained in:
14
bootstrap-validator/bootstrap-validator-tests.ts
Normal file
14
bootstrap-validator/bootstrap-validator-tests.ts
Normal 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
20
bootstrap-validator/index.d.ts
vendored
Normal 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;
|
||||
}
|
||||
20
bootstrap-validator/tsconfig.json
Normal file
20
bootstrap-validator/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
bootstrap-validator/tslint.json
Normal file
1
bootstrap-validator/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user