Skip to content

Commit

Permalink
Fixes for empty variables in ts-operations (#4201)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Jun 10, 2020
1 parent 7098076 commit 7c9bacf
Show file tree
Hide file tree
Showing 38 changed files with 90 additions and 76 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev-test/githunt/types.apolloAngular.sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.apolloAngular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.avoidOptionals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.enumsAsTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.flatten.preResolveTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export type CommentQuery = {
}>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = {
__typename?: 'Query';
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.immutableTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export type CommentsPageCommentFragment = { readonly __typename?: 'Comment' } &
'id' | 'createdAt' | 'content'
> & { readonly postedBy: { readonly __typename?: 'User' } & Pick<User, 'login' | 'html_url'> };

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { readonly __typename?: 'Query' } & {
readonly currentUser?: Maybe<{ readonly __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.preResolveTypes.compatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export type CommentsPageCommentFragment = {
postedBy: { __typename?: 'User'; login: string; html_url: string };
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = {
__typename?: 'Query';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export type CommentsPageCommentFragment = {
postedBy: { __typename?: 'User'; login: string; html_url: string };
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = {
__typename?: 'Query';
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.preResolveTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export type CommentsPageCommentFragment = {
postedBy: { __typename?: 'User'; login: string; html_url: string };
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = {
__typename?: 'Query';
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.reactApollo.customSuffix.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQueryMyOperation = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.reactApollo.hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.reactApollo.preResolveTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export type CommentsPageCommentFragment = {
postedBy: { __typename?: 'User'; login: string; html_url: string };
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = {
__typename?: 'Query';
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.reactApollo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.stencilApollo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.urql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
2 changes: 1 addition & 1 deletion dev-test/githunt/types.vueApollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comm
postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
};

export type CurrentUserForProfileQueryVariables = {};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;

export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
Expand Down
3 changes: 2 additions & 1 deletion dev-test/star-wars/__generated__/HeroAppearsIn.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dev-test/star-wars/__generated__/HumanWithNullWeight.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dev-test/star-wars/__generated__/TwoHeroes.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dev-test/star-wars/types.avoidOptionals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export type HeroAndFriendsNamesQuery = { __typename?: 'Query' } & {
>;
};

export type HeroAppearsInQueryVariables = {};
export type HeroAppearsInQueryVariables = Exact<{ [key: string]: never }>;

export type HeroAppearsInQuery = { __typename?: 'Query' } & {
hero: Maybe<
Expand Down Expand Up @@ -371,13 +371,13 @@ export type HeroTypeDependentAliasedFieldQuery = { __typename?: 'Query' } & {

export type HumanFieldsFragment = { __typename?: 'Human' } & Pick<Human, 'name' | 'mass'>;

export type HumanWithNullHeightQueryVariables = {};
export type HumanWithNullHeightQueryVariables = Exact<{ [key: string]: never }>;

export type HumanWithNullHeightQuery = { __typename?: 'Query' } & {
human: Maybe<{ __typename?: 'Human' } & HumanFieldsFragment>;
};

export type TwoHeroesQueryVariables = {};
export type TwoHeroesQueryVariables = Exact<{ [key: string]: never }>;

export type TwoHeroesQuery = { __typename?: 'Query' } & {
r2: Maybe<({ __typename?: 'Human' } & Pick<Human, 'name'>) | ({ __typename?: 'Droid' } & Pick<Droid, 'name'>)>;
Expand Down
6 changes: 3 additions & 3 deletions dev-test/star-wars/types.globallyAvailable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ type HeroAndFriendsNamesQuery = { __typename?: 'Query' } & {
>;
};

type HeroAppearsInQueryVariables = {};
type HeroAppearsInQueryVariables = Exact<{ [key: string]: never }>;

type HeroAppearsInQuery = { __typename?: 'Query' } & {
hero?: Maybe<
Expand Down Expand Up @@ -369,13 +369,13 @@ type HeroTypeDependentAliasedFieldQuery = { __typename?: 'Query' } & {

type HumanFieldsFragment = { __typename?: 'Human' } & Pick<Human, 'name' | 'mass'>;

type HumanWithNullHeightQueryVariables = {};
type HumanWithNullHeightQueryVariables = Exact<{ [key: string]: never }>;

type HumanWithNullHeightQuery = { __typename?: 'Query' } & {
human?: Maybe<{ __typename?: 'Human' } & HumanFieldsFragment>;
};

type TwoHeroesQueryVariables = {};
type TwoHeroesQueryVariables = Exact<{ [key: string]: never }>;

type TwoHeroesQuery = { __typename?: 'Query' } & {
r2?: Maybe<({ __typename?: 'Human' } & Pick<Human, 'name'>) | ({ __typename?: 'Droid' } & Pick<Droid, 'name'>)>;
Expand Down
6 changes: 3 additions & 3 deletions dev-test/star-wars/types.immutableTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export type HeroAndFriendsNamesQuery = { readonly __typename?: 'Query' } & {
>;
};

export type HeroAppearsInQueryVariables = {};
export type HeroAppearsInQueryVariables = Exact<{ [key: string]: never }>;

export type HeroAppearsInQuery = { readonly __typename?: 'Query' } & {
readonly hero?: Maybe<
Expand Down Expand Up @@ -387,13 +387,13 @@ export type HeroTypeDependentAliasedFieldQuery = { readonly __typename?: 'Query'

export type HumanFieldsFragment = { readonly __typename?: 'Human' } & Pick<Human, 'name' | 'mass'>;

export type HumanWithNullHeightQueryVariables = {};
export type HumanWithNullHeightQueryVariables = Exact<{ [key: string]: never }>;

export type HumanWithNullHeightQuery = { readonly __typename?: 'Query' } & {
readonly human?: Maybe<{ readonly __typename?: 'Human' } & HumanFieldsFragment>;
};

export type TwoHeroesQueryVariables = {};
export type TwoHeroesQueryVariables = Exact<{ [key: string]: never }>;

export type TwoHeroesQuery = { readonly __typename?: 'Query' } & {
readonly r2?: Maybe<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export type HeroAndFriendsNamesQuery = {
>;
};

export type HeroAppearsInQueryVariables = {};
export type HeroAppearsInQueryVariables = Exact<{ [key: string]: never }>;

export type HeroAppearsInQuery = {
__typename?: 'Query';
Expand Down Expand Up @@ -185,14 +185,14 @@ export type HeroTypeDependentAliasedFieldQuery = {

export type HumanFieldsFragment = { __typename?: 'Human'; name: string; mass?: Maybe<number> };

export type HumanWithNullHeightQueryVariables = {};
export type HumanWithNullHeightQueryVariables = Exact<{ [key: string]: never }>;

export type HumanWithNullHeightQuery = {
__typename?: 'Query';
human?: Maybe<{ __typename?: 'Human' } & HumanFieldsFragment>;
};

export type TwoHeroesQueryVariables = {};
export type TwoHeroesQueryVariables = Exact<{ [key: string]: never }>;

export type TwoHeroesQuery = {
__typename?: 'Query';
Expand Down
6 changes: 3 additions & 3 deletions dev-test/star-wars/types.preResolveTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export type HeroAndFriendsNamesQuery = {
>;
};

export type HeroAppearsInQueryVariables = {};
export type HeroAppearsInQueryVariables = Exact<{ [key: string]: never }>;

export type HeroAppearsInQuery = {
__typename?: 'Query';
Expand Down Expand Up @@ -376,14 +376,14 @@ export type HeroTypeDependentAliasedFieldQuery = {

export type HumanFieldsFragment = { __typename?: 'Human'; name: string; mass?: Maybe<number> };

export type HumanWithNullHeightQueryVariables = {};
export type HumanWithNullHeightQueryVariables = Exact<{ [key: string]: never }>;

export type HumanWithNullHeightQuery = {
__typename?: 'Query';
human?: Maybe<{ __typename?: 'Human' } & HumanFieldsFragment>;
};

export type TwoHeroesQueryVariables = {};
export type TwoHeroesQueryVariables = Exact<{ [key: string]: never }>;

export type TwoHeroesQuery = {
__typename?: 'Query';
Expand Down
6 changes: 3 additions & 3 deletions dev-test/star-wars/types.skipSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export type HeroAndFriendsNamesQuery = { __typename?: 'Query' } & {
>;
};

export type HeroAppearsInQueryVariables = {};
export type HeroAppearsInQueryVariables = Exact<{ [key: string]: never }>;

export type HeroAppearsInQuery = { __typename?: 'Query' } & {
hero?: Maybe<
Expand Down Expand Up @@ -371,13 +371,13 @@ export type HeroTypeDependentAliasedFieldQuery = { __typename?: 'Query' } & {

export type HumanFieldsFragment = { __typename?: 'Human' } & Pick<Human, 'name' | 'mass'>;

export type HumanWithNullHeightQueryVariables = {};
export type HumanWithNullHeightQueryVariables = Exact<{ [key: string]: never }>;

export type HumanWithNullHeightQuery = { __typename?: 'Query' } & {
human?: Maybe<{ __typename?: 'Human' } & HumanFieldsFragment>;
};

export type TwoHeroesQueryVariables = {};
export type TwoHeroesQueryVariables = Exact<{ [key: string]: never }>;

export type TwoHeroesQuery = { __typename?: 'Query' } & {
r2?: Maybe<({ __typename?: 'Human' } & Pick<Human, 'name'>) | ({ __typename?: 'Droid' } & Pick<Droid, 'name'>)>;
Expand Down
6 changes: 3 additions & 3 deletions dev-test/star-wars/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export type HeroAndFriendsNamesQuery = { __typename?: 'Query' } & {
>;
};

export type HeroAppearsInQueryVariables = {};
export type HeroAppearsInQueryVariables = Exact<{ [key: string]: never }>;

export type HeroAppearsInQuery = { __typename?: 'Query' } & {
hero?: Maybe<
Expand Down Expand Up @@ -371,13 +371,13 @@ export type HeroTypeDependentAliasedFieldQuery = { __typename?: 'Query' } & {

export type HumanFieldsFragment = { __typename?: 'Human' } & Pick<Human, 'name' | 'mass'>;

export type HumanWithNullHeightQueryVariables = {};
export type HumanWithNullHeightQueryVariables = Exact<{ [key: string]: never }>;

export type HumanWithNullHeightQuery = { __typename?: 'Query' } & {
human?: Maybe<{ __typename?: 'Human' } & HumanFieldsFragment>;
};

export type TwoHeroesQueryVariables = {};
export type TwoHeroesQueryVariables = Exact<{ [key: string]: never }>;

export type TwoHeroesQuery = { __typename?: 'Query' } & {
r2?: Maybe<({ __typename?: 'Human' } & Pick<Human, 'name'>) | ({ __typename?: 'Droid' } & Pick<Droid, 'name'>)>;
Expand Down

0 comments on commit 7c9bacf

Please sign in to comment.