Starter: tighten types to match lex
This commit is contained in:
@@ -2,8 +2,10 @@ import {
|
|||||||
AppBskyActorDefs,
|
AppBskyActorDefs,
|
||||||
AppBskyGraphGetStarterPack,
|
AppBskyGraphGetStarterPack,
|
||||||
BskyAgent,
|
BskyAgent,
|
||||||
|
ComAtprotoRepoApplyWrites,
|
||||||
Facet,
|
Facet,
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
|
import {$Typed} from '@atproto/api/dist/client/util'
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {useMutation} from '@tanstack/react-query'
|
import {useMutation} from '@tanstack/react-query'
|
||||||
@@ -136,7 +138,13 @@ export function useGenerateStarterPackMutation({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function createListItem({did, listUri}: {did: string; listUri: string}) {
|
function createListItem({
|
||||||
|
did,
|
||||||
|
listUri,
|
||||||
|
}: {
|
||||||
|
did: string
|
||||||
|
listUri: string
|
||||||
|
}): $Typed<ComAtprotoRepoApplyWrites.Create> {
|
||||||
return {
|
return {
|
||||||
$type: 'com.atproto.repo.applyWrites#create',
|
$type: 'com.atproto.repo.applyWrites#create',
|
||||||
collection: 'app.bsky.graph.listitem',
|
collection: 'app.bsky.graph.listitem',
|
||||||
|
|||||||
Reference in New Issue
Block a user