remove some errors

This commit is contained in:
allipierre
2017-11-23 15:40:52 +01:00
parent 07de29ea09
commit 3a84e4eed4
5 changed files with 41 additions and 9 deletions
+4 -2
View File
@@ -22,10 +22,12 @@
},
"devDependencies": {
"dtslint": "github:Microsoft/dtslint#production",
"types-publisher": "Microsoft/types-publisher#production"
"types-publisher": "Microsoft/types-publisher#production",
"typescript": "^2.6.1"
},
"dependencies": {
"@types/jquery": "^3.2.16",
"jquery": "^3.2.1"
"jquery": "^3.1.1",
"typescript": "^2.6.1"
}
}
@@ -1,6 +1,3 @@
import * as $ from 'jquery';
namespace server {
export interface Iperson {
title: string,
+5 -3
View File
@@ -3,13 +3,14 @@
// Definitions by: Alli Pierre Yotti <https://github.com/allipierre>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="jquery"/>
interface JQueryStatic {
interface JQueryStatic {
/**
* confirm Dialog
* @param {confirmOptions} pOtions
*/
confirm( pOtions: options.confirmOptions | string, title?:string): boolean | void | HTMLElement | any;
confirm( pOtions: options.confirmOptions | string, title?:string): boolean | void | HTMLElement | any;
/**
* confirm alert
@@ -26,7 +27,7 @@ interface JQueryStatic {
}
interface JQuery {
interface JQuery {
/**
* confirm Dialog
* @param {confirmOptions} pOtions
@@ -52,6 +53,7 @@ interface Window {
declare namespace options {
interface confirmOptions {
+1
View File
@@ -8,6 +8,7 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
+31 -1
View File
@@ -1 +1,31 @@
{ "extends": "dtslint/dt.json" }
{
"rules": {
"max-line-length": {
"options": [
120
]
},
"new-parens": true,
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": false,
"no-console": {
"options": [
"debug",
"info",
"log",
"time",
"timeEnd",
"trace"
]
}
},
"jsRules": {
"max-line-length": {
"options": [
120
]
}
}
}