mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Refine types for #600
This commit is contained in:
@ -92,7 +92,7 @@ export type ScreenTabsScreenProps<T extends keyof ScreenTabsStackParamList> = Bo
|
||||
|
||||
export type TabSharedStackParamList = {
|
||||
'Tab-Shared-Account': {
|
||||
account: Partial<Mastodon.Account> & Pick<Mastodon.Account, 'id'>
|
||||
account: Partial<Mastodon.Account> & Pick<Mastodon.Account, 'id' | 'username' | 'acct'>
|
||||
}
|
||||
'Tab-Shared-Account-In-Lists': {
|
||||
account: Pick<Mastodon.Account, 'id' | 'username'>
|
||||
@ -105,7 +105,10 @@ export type TabSharedStackParamList = {
|
||||
id: Mastodon.Status['id']
|
||||
detectedLanguage: string
|
||||
}
|
||||
'Tab-Shared-Report': { account: Mastodon.Account; status?: Pick<Mastodon.Status, 'id'> }
|
||||
'Tab-Shared-Report': {
|
||||
account: Partial<Mastodon.Account> & Pick<Mastodon.Account, 'id' | 'acct' | 'username'>
|
||||
status?: Pick<Mastodon.Status, 'id'>
|
||||
}
|
||||
'Tab-Shared-Search': undefined
|
||||
'Tab-Shared-Toot': {
|
||||
toot: Mastodon.Status
|
||||
|
Reference in New Issue
Block a user