be always very strict (recently added to typescript)
This commit is contained in:
parent
031ede6fb3
commit
01c58e812e
@ -110,9 +110,8 @@ const tsBaseArgs = {
|
||||
lib: ["ES6", "DOM"],
|
||||
noImplicitReturns: true,
|
||||
noFallthroughCasesInSwitch: true,
|
||||
strictNullChecks: true,
|
||||
strict: true,
|
||||
noImplicitAny: true,
|
||||
alwaysStrict: true,
|
||||
};
|
||||
|
||||
|
||||
|
@ -67,10 +67,11 @@ export namespace Checkable {
|
||||
props: Prop[];
|
||||
}
|
||||
|
||||
export let SchemaError = (function SchemaError(message: string) {
|
||||
this.name = 'SchemaError';
|
||||
this.message = message;
|
||||
this.stack = (<any>new Error()).stack;
|
||||
export let SchemaError = (function SchemaError(this: any, message: string) {
|
||||
let that: any = this as any;
|
||||
that.name = 'SchemaError';
|
||||
that.message = message;
|
||||
that.stack = (<any>new Error()).stack;
|
||||
}) as any as SchemaErrorConstructor;
|
||||
|
||||
|
||||
|
@ -12,9 +12,8 @@
|
||||
],
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"strictNullChecks": true,
|
||||
"noImplicitAny": true,
|
||||
"alwaysStrict": true
|
||||
"strict": true,
|
||||
"noImplicitAny": true
|
||||
},
|
||||
"files": [
|
||||
"decl/chrome/chrome.d.ts",
|
||||
|
Loading…
Reference in New Issue
Block a user