( threadInfo: RawThreadInfo | ThreadInfo, )
| 1631 | } |
| 1632 | |
| 1633 | function getThreadsToDeleteText( |
| 1634 | threadInfo: RawThreadInfo | ThreadInfo, |
| 1635 | ): string { |
| 1636 | return `${ |
| 1637 | threadTypeIsCommunityRoot(threadInfo.type) |
| 1638 | ? 'Subchannels and threads' |
| 1639 | : 'Threads' |
| 1640 | } within this ${communityOrThreadNoun(threadInfo)}`; |
| 1641 | } |
| 1642 | |
| 1643 | type OldestCreatedInput = { +creationTime: number, ... }; |
| 1644 | function getOldestCreated<T: OldestCreatedInput>(arr: $ReadOnlyArray<T>): ?T { |
no test coverage detected