Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
1.0 kB · 56 lines
TypeScript
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657import {type Sift} from '@bsky.app/sift'import {type Emoji} from '@emoji-mart/data'
import type * as bsky from '#/types/bsky'
export type AutocompleteProfile = { key: string type: 'profile' value: string profile: bsky.profile.AnyProfileView}
export type AutocompleteTag = { key: string type: 'tag' value: string tag: string}
export type AutocompleteEmoji = { key: string type: 'emoji' value: string emoji: Emoji}
export type AutocompleteSearch = { key: string type: 'search' value: string}
export type AutocompleteOpenLink = { key: string type: 'open-link' value: string}
export type AutocompleteItem = | AutocompleteProfile | AutocompleteTag | AutocompleteEmoji | AutocompleteSearch | AutocompleteOpenLink
export type AutocompleteItemType = AutocompleteItem['type']
export type AutocompleteItemProps = Parameters< Parameters<typeof Sift<AutocompleteItem>>[0]['render']>[0]
export type AutocompleteApi = { query: string items: AutocompleteItem[] isFetching: boolean}