From ffe37cb7f501e65e445c30764a1b34f659562756 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Thu, 7 Jul 2022 19:03:52 +0300 Subject: [PATCH] tsconfig: enable `noImplicitOverride` check --- src/error/GraphQLError.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error/GraphQLError.ts b/src/error/GraphQLError.ts index 7fec960883..71b5195793 100644 --- a/src/error/GraphQLError.ts +++ b/src/error/GraphQLError.ts @@ -160,7 +160,7 @@ export class GraphQLError extends Error { return 'GraphQLError'; } - toString(): string { + override toString(): string { let output = this.message; if (this.nodes) { diff --git a/tsconfig.json b/tsconfig.json index fd1a89450a..4d0bc0adde 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,7 +24,7 @@ "allowUnusedLabels": false, "exactOptionalPropertyTypes": false, // FIXME "noFallthroughCasesInSwitch": false, // TODO consider - "noImplicitOverride": false, // FIXME + "noImplicitOverride": true, "noImplicitReturns": false, // TODO consider "noPropertyAccessFromIndexSignature": false, // TODO consider "noUncheckedIndexedAccess": false, // FIXME