Use Un util
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
|||||||
BskyAgent,
|
BskyAgent,
|
||||||
ComAtprotoRepoApplyWrites,
|
ComAtprotoRepoApplyWrites,
|
||||||
Facet,
|
Facet,
|
||||||
|
Un$Typed,
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
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'
|
||||||
@@ -70,7 +71,7 @@ export function useListCreateMutation() {
|
|||||||
) {
|
) {
|
||||||
throw new Error('Invalid list purpose: must be curatelist or modlist')
|
throw new Error('Invalid list purpose: must be curatelist or modlist')
|
||||||
}
|
}
|
||||||
const record: AppBskyGraphList.Record = {
|
const record: Un$Typed<AppBskyGraphList.Record> = {
|
||||||
purpose,
|
purpose,
|
||||||
name,
|
name,
|
||||||
description,
|
description,
|
||||||
|
|||||||
Reference in New Issue
Block a user