Skip to content

Commit

Permalink
refactor: turn on noImplicitOverride in TS configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Sep 19, 2024
1 parent f76dabb commit 6375d3c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export class OCPP16ServiceUtils extends OCPPServiceUtils {
return key.visible
}

public static parseJsonSchemaFile<T extends JsonType>(
public static override parseJsonSchemaFile<T extends JsonType>(
relativePath: string,
moduleName?: string,
methodName?: string
Expand Down
2 changes: 1 addition & 1 deletion src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { type JsonType, OCPPVersion } from '../../../types/index.js'
import { OCPPServiceUtils } from '../OCPPServiceUtils.js'

export class OCPP20ServiceUtils extends OCPPServiceUtils {
public static parseJsonSchemaFile<T extends JsonType>(
public static override parseJsonSchemaFile<T extends JsonType>(
relativePath: string,
moduleName?: string,
methodName?: string
Expand Down
2 changes: 1 addition & 1 deletion src/charging-station/ui-server/UIHttpServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class UIHttpServer extends AbstractUIServer {
return logPrefix(logMsg)
}

public constructor (protected readonly uiServerConfiguration: UIServerConfiguration) {
public constructor (protected override readonly uiServerConfiguration: UIServerConfiguration) {
super(uiServerConfiguration)
}

Expand Down
2 changes: 1 addition & 1 deletion src/charging-station/ui-server/UIWebSocketServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class UIWebSocketServer extends AbstractUIServer {
return logPrefix(logMsg)
}

public constructor (protected readonly uiServerConfiguration: UIServerConfiguration) {
public constructor (protected override readonly uiServerConfiguration: UIServerConfiguration) {
super(uiServerConfiguration)
this.webSocketServer = new WebSocketServer({
handleProtocols,
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"verbatimModuleSyntax": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"forceConsistentCasingInFileNames": true
}
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true
},
"include": ["*.ts", "src/**/*.ts", "tests/**/*.ts"]
}
1 change: 1 addition & 0 deletions ui/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"compilerOptions": {
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"noImplicitOverride": true,
"sourceMap": true,
"composite": true,
"baseUrl": "./",
Expand Down

0 comments on commit 6375d3c

Please sign in to comment.