fedisearch/application/src/graphql/common/types/StatsSortingByEnum.ts

13 wiersze
313 B
TypeScript

import { z } from 'zod'
export const StatsSortingByValues: readonly [string, ...string[]] = [
'softwareName',
'nodeCount',
'accountFeedCount',
'channelFeedCount'
]
export const statsSortingBySchema = z.enum(StatsSortingByValues)
export type StatsSoringByEnumType = z.infer<typeof statsSortingBySchema>