Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/khaki-turtles-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphql-codegen/typescript-operations': major
'@graphql-codegen/typescript': minor
---

The `typescript-operations` plugin no longer generates InputMaybe and Scalars types; it now uses native Typescript types instead.
20 changes: 10 additions & 10 deletions dev-test/githunt/typed-document-nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export enum VoteType {
}

export type OnCommentAddedSubscriptionVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type OnCommentAddedSubscription = {
Expand All @@ -185,9 +185,9 @@ export type OnCommentAddedSubscription = {
};

export type CommentQueryVariables = Exact<{
repoFullName: Scalars['String']['input'];
limit?: InputMaybe<Scalars['Int']['input']>;
offset?: InputMaybe<Scalars['Int']['input']>;
repoFullName: string;
limit?: number | null;
offset?: number | null;
}>;

export type CommentQuery = {
Expand Down Expand Up @@ -253,8 +253,8 @@ export type FeedEntryFragment = {

export type FeedQueryVariables = Exact<{
type: FeedType;
offset?: InputMaybe<Scalars['Int']['input']>;
limit?: InputMaybe<Scalars['Int']['input']>;
offset?: number | null;
limit?: number | null;
}>;

export type FeedQuery = {
Expand All @@ -281,7 +281,7 @@ export type FeedQuery = {
};

export type SubmitRepositoryMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type SubmitRepositoryMutation = {
Expand All @@ -302,8 +302,8 @@ export type RepoInfoFragment = {
};

export type SubmitCommentMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
commentContent: Scalars['String']['input'];
repoFullName: string;
commentContent: string;
}>;

export type SubmitCommentMutation = {
Expand All @@ -324,7 +324,7 @@ export type VoteButtonsFragment = {
};

export type VoteMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
type: VoteType;
}>;

Expand Down
20 changes: 10 additions & 10 deletions dev-test/githunt/types.avoidOptionals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export enum VoteType {
}

export type OnCommentAddedSubscriptionVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type OnCommentAddedSubscription = {
Expand All @@ -184,9 +184,9 @@ export type OnCommentAddedSubscription = {
};

export type CommentQueryVariables = Exact<{
repoFullName: Scalars['String']['input'];
limit: InputMaybe<Scalars['Int']['input']>;
offset: InputMaybe<Scalars['Int']['input']>;
repoFullName: string;
limit: number | null;
offset: number | null;
}>;

export type CommentQuery = {
Expand Down Expand Up @@ -252,8 +252,8 @@ export type FeedEntryFragment = {

export type FeedQueryVariables = Exact<{
type: FeedType;
offset: InputMaybe<Scalars['Int']['input']>;
limit: InputMaybe<Scalars['Int']['input']>;
offset: number | null;
limit: number | null;
}>;

export type FeedQuery = {
Expand All @@ -280,7 +280,7 @@ export type FeedQuery = {
};

export type SubmitRepositoryMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type SubmitRepositoryMutation = {
Expand All @@ -301,8 +301,8 @@ export type RepoInfoFragment = {
};

export type SubmitCommentMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
commentContent: Scalars['String']['input'];
repoFullName: string;
commentContent: string;
}>;

export type SubmitCommentMutation = {
Expand All @@ -323,7 +323,7 @@ export type VoteButtonsFragment = {
};

export type VoteMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
type: VoteType;
}>;

Expand Down
20 changes: 10 additions & 10 deletions dev-test/githunt/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export type Vote = {
export type VoteType = 'CANCEL' | 'DOWN' | 'UP';

export type OnCommentAddedSubscriptionVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type OnCommentAddedSubscription = {
Expand All @@ -179,9 +179,9 @@ export type OnCommentAddedSubscription = {
};

export type CommentQueryVariables = Exact<{
repoFullName: Scalars['String']['input'];
limit?: InputMaybe<Scalars['Int']['input']>;
offset?: InputMaybe<Scalars['Int']['input']>;
repoFullName: string;
limit?: number | null;
offset?: number | null;
}>;

export type CommentQuery = {
Expand Down Expand Up @@ -247,8 +247,8 @@ export type FeedEntryFragment = {

export type FeedQueryVariables = Exact<{
type: FeedType;
offset?: InputMaybe<Scalars['Int']['input']>;
limit?: InputMaybe<Scalars['Int']['input']>;
offset?: number | null;
limit?: number | null;
}>;

export type FeedQuery = {
Expand All @@ -275,7 +275,7 @@ export type FeedQuery = {
};

export type SubmitRepositoryMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type SubmitRepositoryMutation = {
Expand All @@ -296,8 +296,8 @@ export type RepoInfoFragment = {
};

export type SubmitCommentMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
commentContent: Scalars['String']['input'];
repoFullName: string;
commentContent: string;
}>;

export type SubmitCommentMutation = {
Expand All @@ -318,7 +318,7 @@ export type VoteButtonsFragment = {
};

export type VoteMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
type: VoteType;
}>;

Expand Down
20 changes: 10 additions & 10 deletions dev-test/githunt/types.enumsAsTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export type Vote = {
export type VoteType = 'CANCEL' | 'DOWN' | 'UP';

export type OnCommentAddedSubscriptionVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type OnCommentAddedSubscription = {
Expand All @@ -179,9 +179,9 @@ export type OnCommentAddedSubscription = {
};

export type CommentQueryVariables = Exact<{
repoFullName: Scalars['String']['input'];
limit?: InputMaybe<Scalars['Int']['input']>;
offset?: InputMaybe<Scalars['Int']['input']>;
repoFullName: string;
limit?: number | null;
offset?: number | null;
}>;

export type CommentQuery = {
Expand Down Expand Up @@ -247,8 +247,8 @@ export type FeedEntryFragment = {

export type FeedQueryVariables = Exact<{
type: FeedType;
offset?: InputMaybe<Scalars['Int']['input']>;
limit?: InputMaybe<Scalars['Int']['input']>;
offset?: number | null;
limit?: number | null;
}>;

export type FeedQuery = {
Expand All @@ -275,7 +275,7 @@ export type FeedQuery = {
};

export type SubmitRepositoryMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type SubmitRepositoryMutation = {
Expand All @@ -296,8 +296,8 @@ export type RepoInfoFragment = {
};

export type SubmitCommentMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
commentContent: Scalars['String']['input'];
repoFullName: string;
commentContent: string;
}>;

export type SubmitCommentMutation = {
Expand All @@ -318,7 +318,7 @@ export type VoteButtonsFragment = {
};

export type VoteMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
type: VoteType;
}>;

Expand Down
20 changes: 10 additions & 10 deletions dev-test/githunt/types.flatten.preResolveTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export enum VoteType {
}

export type OnCommentAddedSubscriptionVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type OnCommentAddedSubscription = {
Expand All @@ -184,9 +184,9 @@ export type OnCommentAddedSubscription = {
};

export type CommentQueryVariables = Exact<{
repoFullName: Scalars['String']['input'];
limit?: InputMaybe<Scalars['Int']['input']>;
offset?: InputMaybe<Scalars['Int']['input']>;
repoFullName: string;
limit?: number | null;
offset?: number | null;
}>;

export type CommentQuery = {
Expand Down Expand Up @@ -225,8 +225,8 @@ export type CurrentUserForProfileQuery = {

export type FeedQueryVariables = Exact<{
type: FeedType;
offset?: InputMaybe<Scalars['Int']['input']>;
limit?: InputMaybe<Scalars['Int']['input']>;
offset?: number | null;
limit?: number | null;
}>;

export type FeedQuery = {
Expand All @@ -253,7 +253,7 @@ export type FeedQuery = {
};

export type SubmitRepositoryMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type SubmitRepositoryMutation = {
Expand All @@ -262,8 +262,8 @@ export type SubmitRepositoryMutation = {
};

export type SubmitCommentMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
commentContent: Scalars['String']['input'];
repoFullName: string;
commentContent: string;
}>;

export type SubmitCommentMutation = {
Expand All @@ -278,7 +278,7 @@ export type SubmitCommentMutation = {
};

export type VoteMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
type: VoteType;
}>;

Expand Down
20 changes: 10 additions & 10 deletions dev-test/githunt/types.immutableTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export enum VoteType {
}

export type OnCommentAddedSubscriptionVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type OnCommentAddedSubscription = {
Expand All @@ -184,9 +184,9 @@ export type OnCommentAddedSubscription = {
};

export type CommentQueryVariables = Exact<{
repoFullName: Scalars['String']['input'];
limit?: InputMaybe<Scalars['Int']['input']>;
offset?: InputMaybe<Scalars['Int']['input']>;
repoFullName: string;
limit?: number | null;
offset?: number | null;
}>;

export type CommentQuery = {
Expand Down Expand Up @@ -252,8 +252,8 @@ export type FeedEntryFragment = {

export type FeedQueryVariables = Exact<{
type: FeedType;
offset?: InputMaybe<Scalars['Int']['input']>;
limit?: InputMaybe<Scalars['Int']['input']>;
offset?: number | null;
limit?: number | null;
}>;

export type FeedQuery = {
Expand All @@ -280,7 +280,7 @@ export type FeedQuery = {
};

export type SubmitRepositoryMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
}>;

export type SubmitRepositoryMutation = {
Expand All @@ -301,8 +301,8 @@ export type RepoInfoFragment = {
};

export type SubmitCommentMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
commentContent: Scalars['String']['input'];
repoFullName: string;
commentContent: string;
}>;

export type SubmitCommentMutation = {
Expand All @@ -323,7 +323,7 @@ export type VoteButtonsFragment = {
};

export type VoteMutationVariables = Exact<{
repoFullName: Scalars['String']['input'];
repoFullName: string;
type: VoteType;
}>;

Expand Down
Loading