fix: Type error due to rebase bringing in incompatible code [#1405]
This MR also contains the following unrelated change:
- Removed reference in TypeScript configuration to non-existent npm module.
Note that due to #1402 (closed) and #1403 (closed) the CI pipeline is still expected to fail.