commit 01c58e812e1faae6aacfd2a44ab8de344a3b466e
parent 031ede6fb3b7443afa9feb486469fab4def2cec6
Author: Florian Dold <florian.dold@gmail.com>
Date: Sat, 27 May 2017 16:31:11 +0200
be always very strict (recently added to typescript)
Diffstat:
3 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/gulpfile.js b/gulpfile.js
@@ -110,9 +110,8 @@ const tsBaseArgs = {
lib: ["ES6", "DOM"],
noImplicitReturns: true,
noFallthroughCasesInSwitch: true,
- strictNullChecks: true,
+ strict: true,
noImplicitAny: true,
- alwaysStrict: true,
};
diff --git a/src/checkable.ts b/src/checkable.ts
@@ -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;
diff --git a/tsconfig.json b/tsconfig.json
@@ -12,9 +12,8 @@
],
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
- "strictNullChecks": true,
- "noImplicitAny": true,
- "alwaysStrict": true
+ "strict": true,
+ "noImplicitAny": true
},
"files": [
"decl/chrome/chrome.d.ts",