diff options
-rw-r--r-- | gulpfile.js | 3 | ||||
-rw-r--r-- | src/checkable.ts | 9 | ||||
-rw-r--r-- | tsconfig.json | 5 |
3 files changed, 8 insertions, 9 deletions
diff --git a/gulpfile.js b/gulpfile.js index 1df9d47ff..d21af0561 100644 --- 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 index 24eebc713..1b6e371f6 100644 --- 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 index 67bb4f847..a97c8f2b6 100644 --- 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", |