From 29ef63c267b3f36b8419c9e07de55465aaaf8bac Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 7 Jan 2025 16:14:25 -0600 Subject: [PATCH] Tighten types in queries/list --- src/state/queries/list.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/state/queries/list.ts b/src/state/queries/list.ts index 405cb4ae3e..f2bcaf3dc7 100644 --- a/src/state/queries/list.ts +++ b/src/state/queries/list.ts @@ -5,8 +5,10 @@ import { AppBskyGraphList, AtUri, BskyAgent, + ComAtprotoRepoApplyWrites, Facet, } from '@atproto/api' +import {$Typed} from '@atproto/api/dist/client/util' import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query' import chunk from 'lodash.chunk' @@ -212,7 +214,9 @@ export function useListDeleteMutation() { } // batch delete the list and listitem records - const createDel = (uri: string) => { + const createDel = ( + uri: string, + ): $Typed => { const urip = new AtUri(uri) return { $type: 'com.atproto.repo.applyWrites#delete',