[GH-ISSUE #1940] [Maintenance][TS] Add missing Modal type #7687

Closed
opened 2026-04-10 17:39:12 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @MatissJanis on GitHub (Nov 20, 2023).
Original GitHub issue: https://github.com/actualbudget/actual/issues/1940

When reviewing #1885 I noticed that we do not have a Modal type. It is currently inferred as any.

Currently it is used in a few places. For example: 4761e9ce2f/packages/loot-core/src/client/state-types/modals.d.ts (L124)

The goal would be to bring it back (it was removed here). This will mean re-introducing the strict type AND fixing the issues that will arise.

Originally created by @MatissJanis on GitHub (Nov 20, 2023). Original GitHub issue: https://github.com/actualbudget/actual/issues/1940 When reviewing #1885 I noticed that we do not have a `Modal` type. It is currently inferred as `any`. Currently it is used in a few places. For example: https://github.com/actualbudget/actual/blob/4761e9ce2ff80ef5d2927f597499a5644f66de1c/packages/loot-core/src/client/state-types/modals.d.ts#L124 The goal would be to bring it back (it was removed [here](https://github.com/actualbudget/actual/commit/e8b3419933286faea7829993380c1ad1dd0dccfa)). This will mean re-introducing the strict type AND fixing the issues that will arise.
GiteaMirror added the maintenance label 2026-04-10 17:39:12 -05:00
Author
Owner

@MatissJanis commented on GitHub (Jul 8, 2024):

Don't think this is applicable any more.

Related to TS migration: https://github.com/actualbudget/actual/issues/1483

<!-- gh-comment-id:2214949831 --> @MatissJanis commented on GitHub (Jul 8, 2024): Don't think this is applicable any more. Related to TS migration: https://github.com/actualbudget/actual/issues/1483
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#7687