diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-06-02 15:01:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 15:01:04 -0500 |
commit | e8843ded5bf1f3d97b735ffe8f8553de46f9b18b (patch) | |
tree | 9c94613890fdc5428875dede148a5dd48e1c21a3 /src/state/models/lists/lists-list.ts | |
parent | 46c9de7c1865a57d2fef926db2d923a8687eca18 (diff) | |
download | voidsky-e8843ded5bf1f3d97b735ffe8f8553de46f9b18b.tar.zst |
Fix a bunch of type errors and add a type-check to the github workflows (#837)
* Add yarn type-check * Rename to yarn typecheck * Fix a collection of type errors * Add typecheck to automated tests * add `dist` to exluded folders tsconfig --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
Diffstat (limited to 'src/state/models/lists/lists-list.ts')
-rw-r--r-- | src/state/models/lists/lists-list.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/state/models/lists/lists-list.ts b/src/state/models/lists/lists-list.ts index 309ab0e03..6618c3bf6 100644 --- a/src/state/models/lists/lists-list.ts +++ b/src/state/models/lists/lists-list.ts @@ -61,7 +61,7 @@ export class ListsListModel { } this._xLoading(replace) try { - let res + let res: GetLists.Response if (this.source === 'my-modlists') { res = { success: true, @@ -170,7 +170,7 @@ async function fetchAllUserLists( let cursor for (let i = 0; i < 100; i++) { - const res = await store.agent.app.bsky.graph.getLists({ + const res: GetLists.Response = await store.agent.app.bsky.graph.getLists({ actor: did, cursor, limit: 50, @@ -199,10 +199,11 @@ async function fetchAllMyMuteLists( let cursor for (let i = 0; i < 100; i++) { - const res = await store.agent.app.bsky.graph.getListMutes({ - cursor, - limit: 50, - }) + const res: GetListMutes.Response = + await store.agent.app.bsky.graph.getListMutes({ + cursor, + limit: 50, + }) cursor = res.data.cursor acc.data.lists = acc.data.lists.concat(res.data.lists) if (!cursor) { |