webapp/src/components/types.ts

20 lines
506 B
TypeScript
Raw Normal View History

2022-09-22 09:37:49 +00:00
// in a separate file to avoid circular dependencies
import type { Author, Shout, Topic } from '../graphql/types.gen'
// all the things (she said) that could be passed from the server
export type PageProps = {
randomTopics?: Topic[]
article?: Shout
2022-10-05 15:11:14 +00:00
authorArticles?: Shout[]
topicArticles?: Shout[]
homeArticles?: Shout[]
feedArticles?: Shout[]
2022-09-22 09:37:49 +00:00
author?: Author
2022-10-05 15:11:14 +00:00
allAuthors?: Author[]
2022-09-22 09:37:49 +00:00
topic?: Topic
2022-10-05 15:11:14 +00:00
allTopics?: Topic[]
2022-09-22 09:37:49 +00:00
searchQuery?: string
// other types?
searchResults?: Shout[]
}