From f522b78ea1958eab7f843fe92cb25fbbca82e122 Mon Sep 17 00:00:00 2001 From: Eliot Austin-Forbes Date: Tue, 13 Feb 2024 17:37:26 +0900 Subject: [PATCH] chore(flow): generate examples --- dev-test/githunt/flow.flow.js | 156 +++++++++++++++++----------------- 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/dev-test/githunt/flow.flow.js b/dev-test/githunt/flow.flow.js index 112254a51..d16ad4e84 100644 --- a/dev-test/githunt/flow.flow.js +++ b/dev-test/githunt/flow.flow.js @@ -176,21 +176,21 @@ export type OnCommentAddedSubscriptionVariables = { repoFullName: $ElementType, }; -export type OnCommentAddedSubscription = { +export type OnCommentAddedSubscription = {| ...{ __typename?: 'Subscription' }, ...{| - commentAdded?: ?{ + commentAdded?: ?{| ...{ __typename?: 'Comment' }, ...$Pick, ...{| - postedBy: { + postedBy: {| ...{ __typename?: 'User' }, ...$Pick, - }, + |}, |}, - }, + |}, |}, -}; +|}; export type CommentQueryVariables = { repoFullName: $ElementType, @@ -198,32 +198,32 @@ export type CommentQueryVariables = { offset?: ?$ElementType, }; -export type CommentQuery = { +export type CommentQuery = {| ...{ __typename?: 'Query' }, ...{| - currentUser?: ?{ + currentUser?: ?{| ...{ __typename?: 'User' }, ...$Pick, - }, - entry?: ?{ + |}, + entry?: ?{| ...{ __typename?: 'Entry' }, ...$Pick, ...{| - postedBy: { + postedBy: {| ...{ __typename?: 'User' }, ...$Pick, - }, - comments: Array, ...{| - postedBy: { + postedBy: {| ...{ __typename?: 'User' }, ...$Pick, - }, + |}, |}, - }>, - repository: { + |}>, + repository: {| ...{ __typename?: 'Repository' }, ...$Pick< Repository, @@ -235,40 +235,40 @@ export type CommentQuery = { html_url: *, |}, >, - }, + |}, |}, - }, + |}, |}, -}; +|}; -export type CommentsPageCommentFragment = { +export type CommentsPageCommentFragment = {| ...{ __typename?: 'Comment' }, ...$Pick, ...{| - postedBy: { + postedBy: {| ...{ __typename?: 'User' }, ...$Pick, - }, + |}, |}, -}; +|}; export type CurrentUserForProfileQueryVariables = {}; -export type CurrentUserForProfileQuery = { +export type CurrentUserForProfileQuery = {| ...{ __typename?: 'Query' }, ...{| - currentUser?: ?{ + currentUser?: ?{| ...{ __typename?: 'User' }, ...$Pick, - }, + |}, |}, -}; +|}; -export type FeedEntryFragment = { +export type FeedEntryFragment = {| ...{ __typename?: 'Entry' }, ...$Pick, ...{| - repository: { + repository: {| ...{ __typename?: 'Repository' }, ...$Pick< Repository, @@ -281,22 +281,22 @@ export type FeedEntryFragment = { |}, >, ...{| - owner?: ?{ + owner?: ?{| ...{ __typename?: 'User' }, ...$Pick, - }, + |}, |}, - }, - vote: { + |}, + vote: {| ...{ __typename?: 'Vote' }, ...$Pick, - }, - postedBy: { + |}, + postedBy: {| ...{ __typename?: 'User' }, ...$Pick, - }, + |}, |}, -}; +|}; export type FeedQueryVariables = { type: FeedType, @@ -304,18 +304,18 @@ export type FeedQueryVariables = { limit?: ?$ElementType, }; -export type FeedQuery = { +export type FeedQuery = {| ...{ __typename?: 'Query' }, ...{| - currentUser?: ?{ + currentUser?: ?{| ...{ __typename?: 'User' }, ...$Pick, - }, - feed?: ?Array, ...{| - repository: { + repository: {| ...{ __typename?: 'Repository' }, ...$Pick< Repository, @@ -328,103 +328,103 @@ export type FeedQuery = { |}, >, ...{| - owner?: ?{ + owner?: ?{| ...{ __typename?: 'User' }, ...$Pick, - }, + |}, |}, - }, - vote: { + |}, + vote: {| ...{ __typename?: 'Vote' }, ...$Pick, - }, - postedBy: { + |}, + postedBy: {| ...{ __typename?: 'User' }, ...$Pick, - }, + |}, |}, - }>, + |}>, |}, -}; +|}; export type SubmitRepositoryMutationVariables = { repoFullName: $ElementType, }; -export type SubmitRepositoryMutation = { +export type SubmitRepositoryMutation = {| ...{ __typename?: 'Mutation' }, ...{| - submitRepository?: ?{ + submitRepository?: ?{| ...{ __typename?: 'Entry' }, ...$Pick, - }, + |}, |}, -}; +|}; -export type RepoInfoFragment = { +export type RepoInfoFragment = {| ...{ __typename?: 'Entry' }, ...$Pick, ...{| - repository: { + repository: {| ...{ __typename?: 'Repository' }, ...$Pick, - }, - postedBy: { + |}, + postedBy: {| ...{ __typename?: 'User' }, ...$Pick, - }, + |}, |}, -}; +|}; export type SubmitCommentMutationVariables = { repoFullName: $ElementType, commentContent: $ElementType, }; -export type SubmitCommentMutation = { +export type SubmitCommentMutation = {| ...{ __typename?: 'Mutation' }, ...{| - submitComment?: ?{ + submitComment?: ?{| ...{ __typename?: 'Comment' }, ...$Pick, ...{| - postedBy: { + postedBy: {| ...{ __typename?: 'User' }, ...$Pick, - }, + |}, |}, - }, + |}, |}, -}; +|}; -export type VoteButtonsFragment = { +export type VoteButtonsFragment = {| ...{ __typename?: 'Entry' }, ...$Pick, ...{| - vote: { + vote: {| ...{ __typename?: 'Vote' }, ...$Pick, - }, + |}, |}, -}; +|}; export type VoteMutationVariables = { repoFullName: $ElementType, type: VoteType, }; -export type VoteMutation = { +export type VoteMutation = {| ...{ __typename?: 'Mutation' }, ...{| - vote?: ?{ + vote?: ?{| ...{ __typename?: 'Entry' }, ...$Pick, ...{| - vote: { + vote: {| ...{ __typename?: 'Vote' }, ...$Pick, - }, + |}, |}, - }, + |}, |}, -}; +|};