14 lines
333 B
TypeScript
14 lines
333 B
TypeScript
import { exists } from './misc'
|
|
import { FollowState } from '@shared/models'
|
|
|
|
function isFollowStateValid (value: FollowState) {
|
|
if (!exists(value)) return false
|
|
|
|
return value === 'pending' || value === 'accepted'
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
isFollowStateValid
|
|
}
|