diff options
author | Miodec <[email protected]> | 2024-07-18 17:37:19 +0200 |
---|---|---|
committer | Miodec <[email protected]> | 2024-07-18 17:37:19 +0200 |
commit | a50d1c3e656ba1a425a8ad66b8382600a9410a16 (patch) | |
tree | 10b48256948b53276531cd53593f534f3de13811 | |
parent | 99e2ae4433198e09f3e841c1034159421ec51be3 (diff) | |
download | monkeytype-a50d1c3e656ba1a425a8ad66b8382600a9410a16.tar.gz monkeytype-a50d1c3e656ba1a425a8ad66b8382600a9410a16.zip |
mooore
-rw-r--r-- | frontend/src/ts/ape/types/leaderboards.d.ts | 2 | ||||
-rw-r--r-- | frontend/src/ts/ape/types/users.d.ts | 2 | ||||
-rw-r--r-- | frontend/src/ts/controllers/page-controller.ts | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/ts/ape/types/leaderboards.d.ts b/frontend/src/ts/ape/types/leaderboards.d.ts index fdceb8467..02f95db35 100644 --- a/frontend/src/ts/ape/types/leaderboards.d.ts +++ b/frontend/src/ts/ape/types/leaderboards.d.ts @@ -20,6 +20,6 @@ declare namespace Ape.Leaderboards { minWpm: number; count: number; rank: number | null; - entry: LeaderboardEntry | null; + entry: import("@monkeytype/shared-types").LeaderboardEntry | null; }; } diff --git a/frontend/src/ts/ape/types/users.d.ts b/frontend/src/ts/ape/types/users.d.ts index c2f45ac0f..5c4ae13e8 100644 --- a/frontend/src/ts/ape/types/users.d.ts +++ b/frontend/src/ts/ape/types/users.d.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ // for some reason when using the dot notaion, the types are not being recognized as used declare namespace Ape.Users { - type GetUser = User & { + type GetUser = import("@monkeytype/shared-types").User & { inboxUnreadSize: number; isPremium: boolean; }; diff --git a/frontend/src/ts/controllers/page-controller.ts b/frontend/src/ts/controllers/page-controller.ts index 752af8c03..ebef017f5 100644 --- a/frontend/src/ts/controllers/page-controller.ts +++ b/frontend/src/ts/controllers/page-controller.ts @@ -88,6 +88,7 @@ export async function change( await previousPage?.afterHide(); await nextPage?.beforeShow({ params: options.params, + //@ts-expect-error data: options.data, }); } |