Fixed code mistakes

canary
WolverinDEV 2018-12-04 18:48:54 +01:00
parent 97d0443cf5
commit 50d24f4e60
5 changed files with 1671 additions and 499 deletions

2152
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,17 +6,20 @@
"directories": {},
"scripts": {
"compile-sass": "sass --update .:.",
"build-worker": "tsc -p shared/js/workers/tsconfig_worker_codec.json"
"build-worker": "tsc -p shared/js/workers/tsconfig_worker_codec.json",
"dtsgen": "node build/dtsgen/index.js"
},
"author": "TeaSpeak (WolverinDEV)",
"license": "ISC",
"devDependencies": {
"@types/emscripten": "0.0.31",
"@types/moment": "^2.13.0",
"@types/gulp": "^4.0.5",
"@types/jquery": "3.3.5",
"@types/moment": "^2.13.0",
"@types/node": "^9.4.6",
"@types/websocket": "0.0.38",
"electron": "^3.0.2",
"gulp": "^3.9.1",
"sass": "^1.14.1",
"typescript": "^3.1.1"
},

View File

@ -5,7 +5,6 @@ enum IdentitifyType {
}
namespace TSIdentityHelper {
import Pointer_stringify = Module.Pointer_stringify;
export let funcationParseIdentity: any;
export let funcationParseIdentityByFile: any;
export let funcationCalculateSecurityLevel: any;

View File

@ -10,9 +10,9 @@ interface JSON {
map_field_to<T>(object: T, value: any, field: string) : T;
}
interface JQuery {
interface JQuery<TElement = HTMLElement> {
render(values?: any) : string;
renderTag(values?: any) : JQuery;
renderTag(values?: any) : JQuery<TElement>;
}
interface JQueryStatic<TElement extends Node = HTMLElement> {

View File

@ -1,9 +1,9 @@
interface JQuery {
asTabWidget(copy?: boolean) : JQuery;
interface JQuery<TElement = HTMLElement> {
asTabWidget(copy?: boolean) : JQuery<TElement>;
tabify(copy?: boolean) : this;
changeElementType(type: string) : JQuery;
changeElementType(type: string) : JQuery<TElement>;
}
if(typeof (customElements) !== "undefined") {