Use strict Typescript mode #34

Closed
opened 2023-06-20 18:18:26 +02:00 by migration-script · 0 comments

Story

As a ds4 developer, I want the Typescript strict mode to be used by the project so that I get more compile time guarantees that prevent potential runtime bugs.

Description

Typescript strict mode enables a couple of additional compile time checks (such as strict null checks etc.). In order to prevent more potential runtime bugs, we should activate this mode for the project. This will certainly require som changes where we currently have violations of the stricter rules.

It probably makes sense to do this after As that issue will significantly change the typing of the project.

Acceptance criteria

  1. In tsconfig.json, strict is set to true (activating the Typescript strict mode)
  2. The typing of the project is adjusted in such a way that it still compiles with strict mode activated.
# Story As a ds4 developer, I want the Typescript strict mode to be used by the project so that I get more compile time guarantees that prevent potential runtime bugs. # Description Typescript strict mode enables a couple of additional compile time checks (such as strict null checks etc.). In order to prevent more potential runtime bugs, we should activate this mode for the project. This will certainly require som changes where we currently have violations of the stricter rules. It probably makes sense to do this after #66 As that issue will significantly change the typing of the project. # Acceptance criteria 1. In `tsconfig.json`, `strict` is set to true (activating the Typescript strict mode) 2. The typing of the project is adjusted in such a way that it still compiles with strict mode activated.
saluu was assigned by migration-script 2023-06-20 18:18:26 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: dungeonslayers/ds4#34
No description provided.