Skip to content

Fix TSLint TypeScript errors - #1647

Closed
Pimak wants to merge 1 commit into
tobspr-games:masterfrom
Pimak:patch-1646
Closed

Pimak wants to merge 1 commit into
tobspr-games:masterfrom
Pimak:patch-1646

Conversation

@Pimak

@Pimak Pimak commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #1646.

Fixes the 7 pre-existing type errors that make the TSLint CI job permanently red regardless of what a PR changes:

  • mod_interface.js: afterPrams/extendsPrams used tuple types with a non-trailing or duplicate rest element, which needs TS >=4.0 while this repo is pinned to typescript@3.9.3. Simplified to (...args: any[]).
  • game_analytics.js: window.setAbt was assigned without being declared on the Window interface augmentation in globals.d.ts.
  • main_menu.js / preload.js: querySelector results typed as Element were accessed via .innerText/.style, which only exist on HTMLElement.
  • preload.js: setStatus(text, progress) was called with only one argument; progress is now marked optional in its JSDoc.

Verified locally by reproducing the CI steps (gulp translations.fullBuild, gulp localConfig.findOrCreate, then yarn lint and yarn tslint) — both now pass with no errors.

Fixes the 7 pre-existing type errors that make the TSLint CI job
permanently red regardless of what a PR changes:

- mod_interface.js: afterPrams/extendsPrams used tuple types with a
  non-trailing or duplicate rest element, which needs TS >=4.0 while
  this repo is pinned to typescript@3.9.3. Simplified to (...args: any[]).
- game_analytics.js: window.setAbt was assigned without being declared
  on the Window interface augmentation in globals.d.ts.
- main_menu.js / preload.js: querySelector results typed as Element
  were accessed via .innerText/.style, which only exist on HTMLElement.
- preload.js: setStatus(text, progress) was called with only one
  argument; progress is now marked optional in its JSDoc.
@Pimak

Pimak commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Hi @tobspr
Can you please merge this?

@EmeraldBlock

Copy link
Copy Markdown
Collaborator

This repo is no longer maintained, see the README. Also none of us trust that you understand the PR you manifested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TSLint has been failing on every recorded CI run for ~1 year — 7 pre-existing TypeScript errors

2 participants