Improve types (#1921)

This commit is contained in:
Eric Bailey 2023-11-15 19:23:59 -06:00 committed by GitHub
parent d8b26edb56
commit 8857ba70c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -31,7 +31,7 @@ export type UsePreferencesQueryResponse = Omit<
*/
contentLabels: Record<ConfigurableLabelGroup, LabelPreference>
feedViewPrefs: BskyFeedViewPreference & {
lab_mergeFeedEnabled: boolean
lab_mergeFeedEnabled?: boolean
}
/**
* User thread-view prefs, including newer fields that may not be typed yet.
@ -45,5 +45,5 @@ export type UsePreferencesQueryResponse = Omit<
export type ThreadViewPreferences = Omit<BskyThreadViewPreference, 'sort'> & {
sort: 'oldest' | 'newest' | 'most-likes' | 'random' | string
lab_treeViewEnabled: boolean
lab_treeViewEnabled?: boolean
}