Tighten types in queries/list
This commit is contained in:
@@ -5,8 +5,10 @@ import {
|
|||||||
AppBskyGraphList,
|
AppBskyGraphList,
|
||||||
AtUri,
|
AtUri,
|
||||||
BskyAgent,
|
BskyAgent,
|
||||||
|
ComAtprotoRepoApplyWrites,
|
||||||
Facet,
|
Facet,
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
|
import {$Typed} from '@atproto/api/dist/client/util'
|
||||||
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
||||||
import chunk from 'lodash.chunk'
|
import chunk from 'lodash.chunk'
|
||||||
|
|
||||||
@@ -212,7 +214,9 @@ export function useListDeleteMutation() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// batch delete the list and listitem records
|
// batch delete the list and listitem records
|
||||||
const createDel = (uri: string) => {
|
const createDel = (
|
||||||
|
uri: string,
|
||||||
|
): $Typed<ComAtprotoRepoApplyWrites.Delete> => {
|
||||||
const urip = new AtUri(uri)
|
const urip = new AtUri(uri)
|
||||||
return {
|
return {
|
||||||
$type: 'com.atproto.repo.applyWrites#delete',
|
$type: 'com.atproto.repo.applyWrites#delete',
|
||||||
|
|||||||
Reference in New Issue
Block a user