Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dotansimha/graphql-code-generator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.17.6
Choose a base ref
...
head repository: dotansimha/graphql-code-generator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.17.7
Choose a head ref

Commits on Jul 27, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    reta Andriy Redko
    Copy the full SHA
    2eec44b View commit details
  2. Copy the full SHA
    59ee25f View commit details
  3. Copy the full SHA
    0d70183 View commit details
  4. chore(deps): update dependency @vue/apollo-composable to v4.0.0-alpha…

    ….10 (#4438)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 27, 2020
    Copy the full SHA
    9eacd97 View commit details
  5. chore(deps): update dependency nock to v13.0.3 (#4439)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 27, 2020
    Copy the full SHA
    b4338b3 View commit details
  6. chore(deps): update typescript-eslint monorepo to v3.7.1 (#4440)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 27, 2020
    Copy the full SHA
    e60df71 View commit details
  7. chore(deps): update dependency apollo-server to v2.16.1 (#4441)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 27, 2020
    Copy the full SHA
    af541ee View commit details

Commits on Jul 28, 2020

  1. Fix spelling error - Generate generate (#4443)

    Fixed spelling error where it says "Generate generate"
    w3bdesign authored Jul 28, 2020
    Copy the full SHA
    4b3e7f8 View commit details
  2. chore(deps): update dependency ts-jest to v26.1.4 (#4446)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 28, 2020
    Copy the full SHA
    1386a87 View commit details
  3. Copy the full SHA
    da792d0 View commit details
  4. Copy the full SHA
    8d8088d View commit details
  5. fix(deps): update dependency graphql-tag to v2.11.0 (#4449)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 28, 2020
    Copy the full SHA
    cdd1fbe View commit details
  6. chore(deps): update dependency @types/node to v14.0.27 (#4451)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 28, 2020
    Copy the full SHA
    65a14b1 View commit details

Commits on Jul 29, 2020

  1. chore(deps): update dependency @types/array.prototype.flatmap to v1.2…

    ….2 (#4453)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 29, 2020
    Copy the full SHA
    b72ceb4 View commit details
  2. chore(deps): update dependency bob-the-bundler to v1.1.0 (#4454)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 29, 2020
    Copy the full SHA
    13e6861 View commit details
  3. chore(deps): update dependency urql to v1.10.0 (#4455)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 29, 2020
    Copy the full SHA
    752e711 View commit details

Commits on Jul 30, 2020

  1. chore(deps): update dependency jest to v26.2.1 (#4460)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 30, 2020
    Copy the full SHA
    2769836 View commit details

Commits on Jul 31, 2020

  1. chore(deps): update dependency @types/jest to v26.0.8 (#4463)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 31, 2020
    Copy the full SHA
    b3a016b View commit details
  2. chore(deps): update dependency jest to v26.2.2 (#4464)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 31, 2020
    Copy the full SHA
    faffc0c View commit details
  3. chore(deps): update dependency @types/react to v16.9.44 (#4467)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 31, 2020
    Copy the full SHA
    6bba2ee View commit details

Commits on Aug 1, 2020

  1. chore(deps): update dependency eslint to v7.6.0 (#4468)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 1, 2020
    Copy the full SHA
    2c90d59 View commit details

Commits on Aug 2, 2020

  1. fix(deps): update dependency cosmiconfig to v7 (#4470)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 2, 2020
    Copy the full SHA
    a69d2a9 View commit details
  2. chore(deps): update dependency worker-loader to v3 (#4469)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 2, 2020
    Copy the full SHA
    ec5d10d View commit details
  3. fix: use 'unknown' instead of 'any' for type Exact (#4461)

    * fix: type Exact<T> no-explicit-any
    
    * chore: update dev-test
    mjbcopland authored Aug 2, 2020
    Copy the full SHA
    d2e15aa View commit details
  4. Copy the full SHA
    a0bcc04 View commit details
  5. Copy the full SHA
    6623100 View commit details
  6. chore(deps): update dependency @docusaurus/preset-classic to v2.0.0-a…

    …lpha.61 (#4457)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 2, 2020
    Copy the full SHA
    64b2aec View commit details
  7. chore(deps): update dependency @graphql-typed-document-node/core to v1 (

    #4452)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 2, 2020
    Copy the full SHA
    e7ec578 View commit details
  8. Copy the full SHA
    0103412 View commit details
  9. Copy the full SHA
    0377e6b View commit details
  10. chore(deps): update dependency @docusaurus/core to v2.0.0-alpha.61 (#…

    …4456)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 2, 2020
    Copy the full SHA
    84faae0 View commit details
  11. Copy the full SHA
    53a947b View commit details
Showing with 1,035 additions and 691 deletions.
  1. +13 −20 dev-test/githunt/typed-document-nodes.ts
  2. +1 −1 dev-test/githunt/types.apolloAngular.sdk.ts
  3. +1 −1 dev-test/githunt/types.apolloAngular.ts
  4. +1 −1 dev-test/githunt/types.avoidOptionals.ts
  5. +1 −1 dev-test/githunt/types.d.ts
  6. +1 −1 dev-test/githunt/types.enumsAsTypes.ts
  7. +1 −1 dev-test/githunt/types.flatten.preResolveTypes.ts
  8. +1 −1 dev-test/githunt/types.immutableTypes.ts
  9. +1 −1 dev-test/githunt/types.preResolveTypes.compatibility.ts
  10. +1 −1 dev-test/githunt/types.preResolveTypes.onlyOperationTypes.ts
  11. +1 −1 dev-test/githunt/types.preResolveTypes.ts
  12. +1 −1 dev-test/githunt/types.reactApollo.customSuffix.tsx
  13. +1 −1 dev-test/githunt/types.reactApollo.hooks.tsx
  14. +1 −1 dev-test/githunt/types.reactApollo.preResolveTypes.tsx
  15. +1 −1 dev-test/githunt/types.reactApollo.tsx
  16. +1 −1 dev-test/githunt/types.stencilApollo.tsx
  17. +1 −1 dev-test/githunt/types.ts
  18. +1 −1 dev-test/githunt/types.urql.tsx
  19. +4 −9 dev-test/githunt/types.vueApollo.ts
  20. +1 −1 dev-test/star-wars/types.avoidOptionals.ts
  21. +1 −1 dev-test/star-wars/types.d.ts
  22. +1 −1 dev-test/star-wars/types.globallyAvailable.d.ts
  23. +1 −1 dev-test/star-wars/types.immutableTypes.ts
  24. +1 −1 dev-test/star-wars/types.preResolveTypes.onlyOperationTypes.ts
  25. +1 −1 dev-test/star-wars/types.preResolveTypes.ts
  26. +1 −1 dev-test/star-wars/types.refetchFn.tsx
  27. +1 −1 dev-test/star-wars/types.skipSchema.ts
  28. +1 −1 dev-test/star-wars/types.ts
  29. +1 −1 dev-test/test-message/types.tsx
  30. +1 −1 dev-test/test-schema/env.types.ts
  31. +1 −1 dev-test/test-schema/resolvers-federation.ts
  32. +1 −1 dev-test/test-schema/resolvers-root.ts
  33. +1 −1 dev-test/test-schema/resolvers-types.ts
  34. +1 −1 dev-test/test-schema/types.preResolveTypes.onlyOperationTypes.ts
  35. +1 −1 dev-test/test-schema/types.preResolveTypes.ts
  36. +1 −1 dev-test/test-schema/typings.avoidOptionals.ts
  37. +1 −1 dev-test/test-schema/typings.enum.ts
  38. +1 −1 dev-test/test-schema/typings.immutableTypes.ts
  39. +1 −1 dev-test/test-schema/typings.ts
  40. +1 −1 dev-test/test-schema/typings.wrapped.ts
  41. +14 −14 package.json
  42. +1 −1 packages/graphql-codegen-cli/package.json
  43. +1 −1 packages/plugins/c-sharp/c-sharp-operations/package.json
  44. +2 −2 packages/plugins/other/visitor-plugin-common/package.json
  45. +31 −14 packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts
  46. +12 −4 packages/plugins/other/visitor-plugin-common/src/imports.ts
  47. +5 −0 packages/plugins/other/visitor-plugin-common/src/types.ts
  48. +2 −1 packages/plugins/typescript/generic-sdk/src/visitor.ts
  49. +3 −3 packages/plugins/typescript/generic-sdk/tests/__snapshots__/generic-sdk.spec.ts.snap
  50. +1 −1 packages/plugins/typescript/graphql-request/package.json
  51. +4 −4 packages/plugins/typescript/graphql-request/tests/__snapshots__/graphql-request.spec.ts.snap
  52. +3 −3 packages/plugins/typescript/operations/tests/__snapshots__/ts-documents.spec.ts.snap
  53. +33 −21 packages/plugins/typescript/react-apollo/src/visitor.ts
  54. +4 −4 packages/plugins/typescript/react-apollo/tests/__snapshots__/react-apollo.spec.ts.snap
  55. +3 −2 packages/plugins/typescript/resolvers/src/index.ts
  56. +2 −2 packages/plugins/typescript/resolvers/tests/__snapshots__/ts-resolvers.spec.ts.snap
  57. +5 −9 packages/plugins/typescript/typed-document-node/src/visitor.ts
  58. +1 −1 packages/plugins/typescript/typescript/src/visitor.ts
  59. +3 −3 packages/plugins/typescript/vue-apollo/src/visitor.ts
  60. +2 −2 packages/plugins/typescript/vue-apollo/tests/vue-apollo.spec.ts
  61. +2 −1 packages/presets/near-operation-file/src/fragment-resolver.ts
  62. +1 −0 packages/presets/near-operation-file/src/index.ts
  63. +7 −2 packages/presets/near-operation-file/src/resolve-document-imports.ts
  64. +1 −1 website/docs/custom-codegen/contributing.md
  65. +9 −1 website/docs/generated-config/c-sharp-operations.md
  66. +9 −1 website/docs/generated-config/c-sharp.md
  67. +9 −1 website/docs/generated-config/flow-operations.md
  68. +9 −1 website/docs/generated-config/flow-resolvers.md
  69. +9 −1 website/docs/generated-config/flow.md
  70. +9 −1 website/docs/generated-config/java-apollo-android.md
  71. +9 −1 website/docs/generated-config/java-resolvers.md
  72. +9 −1 website/docs/generated-config/java.md
  73. +9 −1 website/docs/generated-config/kotlin.md
  74. +9 −1 website/docs/generated-config/typescript-apollo-angular.md
  75. +9 −1 website/docs/generated-config/typescript-compatibility.md
  76. +9 −1 website/docs/generated-config/typescript-document-nodes.md
  77. +9 −1 website/docs/generated-config/typescript-graphql-request.md
  78. +9 −1 website/docs/generated-config/typescript-mongodb.md
  79. +9 −1 website/docs/generated-config/typescript-operations.md
  80. +9 −1 website/docs/generated-config/typescript-react-apollo.md
  81. +9 −1 website/docs/generated-config/typescript-resolvers.md
  82. +9 −1 website/docs/generated-config/typescript-stencil-apollo.md
  83. +9 −1 website/docs/generated-config/typescript-type-graphql.md
  84. +9 −1 website/docs/generated-config/typescript-urql.md
  85. +9 −1 website/docs/generated-config/typescript-vue-apollo.md
  86. +9 −1 website/docs/generated-config/typescript.md
  87. +9 −9 website/docs/getting-started/codegen-config.md
  88. +2 −2 website/docs/getting-started/index.md
  89. +9 −9 website/docs/getting-started/installation.md
  90. +1 −1 website/docs/getting-started/require-field.md
  91. +1 −1 website/docs/getting-started/schema-field.md
  92. +1 −1 website/docs/integrations/prettier.md
  93. +2 −2 website/docs/plugins/index.md
  94. +6 −14 website/docusaurus.config.js
  95. +21 −17 website/monaco-plugin.js
  96. +3 −3 website/package.json
  97. +105 −0 website/static/config.schema.json
  98. +479 −447 yarn.lock
33 changes: 13 additions & 20 deletions dev-test/githunt/typed-document-nodes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DocumentNode } from 'graphql';
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
@@ -267,7 +266,7 @@ export type VoteMutation = { __typename?: 'Mutation' } & {
>;
};

export const CommentsPageCommentFragmentDoc: DocumentNode = {
export const CommentsPageCommentFragmentDoc: DocumentNode<CommentsPageCommentFragment, unknown> = {
kind: 'Document',
definitions: [
{
@@ -299,7 +298,7 @@ export const CommentsPageCommentFragmentDoc: DocumentNode = {
},
],
};
export const VoteButtonsFragmentDoc: DocumentNode = {
export const VoteButtonsFragmentDoc: DocumentNode<VoteButtonsFragment, unknown> = {
kind: 'Document',
definitions: [
{
@@ -328,7 +327,7 @@ export const VoteButtonsFragmentDoc: DocumentNode = {
},
],
};
export const RepoInfoFragmentDoc: DocumentNode = {
export const RepoInfoFragmentDoc: DocumentNode<RepoInfoFragment, unknown> = {
kind: 'Document',
definitions: [
{
@@ -372,7 +371,7 @@ export const RepoInfoFragmentDoc: DocumentNode = {
},
],
};
export const FeedEntryFragmentDoc: DocumentNode = {
export const FeedEntryFragmentDoc: DocumentNode<FeedEntryFragment, unknown> = {
kind: 'Document',
definitions: [
{
@@ -419,10 +418,7 @@ export const FeedEntryFragmentDoc: DocumentNode = {
...RepoInfoFragmentDoc.definitions,
],
};
export const OnCommentAddedDocument: TypedDocumentNode<
OnCommentAddedSubscription,
OnCommentAddedSubscriptionVariables
> = {
export const OnCommentAddedDocument: DocumentNode<OnCommentAddedSubscription, OnCommentAddedSubscriptionVariables> = {
kind: 'Document',
definitions: [
{
@@ -479,7 +475,7 @@ export const OnCommentAddedDocument: TypedDocumentNode<
},
],
};
export const CommentDocument: TypedDocumentNode<CommentQuery, CommentQueryVariables> = {
export const CommentDocument: DocumentNode<CommentQuery, CommentQueryVariables> = {
kind: 'Document',
definitions: [
{
@@ -626,7 +622,7 @@ export const CommentDocument: TypedDocumentNode<CommentQuery, CommentQueryVariab
...CommentsPageCommentFragmentDoc.definitions,
],
};
export const CurrentUserForProfileDocument: TypedDocumentNode<
export const CurrentUserForProfileDocument: DocumentNode<
CurrentUserForProfileQuery,
CurrentUserForProfileQueryVariables
> = {
@@ -659,7 +655,7 @@ export const CurrentUserForProfileDocument: TypedDocumentNode<
},
],
};
export const FeedDocument: TypedDocumentNode<FeedQuery, FeedQueryVariables> = {
export const FeedDocument: DocumentNode<FeedQuery, FeedQueryVariables> = {
kind: 'Document',
definitions: [
{
@@ -732,10 +728,7 @@ export const FeedDocument: TypedDocumentNode<FeedQuery, FeedQueryVariables> = {
...FeedEntryFragmentDoc.definitions,
],
};
export const SubmitRepositoryDocument: TypedDocumentNode<
SubmitRepositoryMutation,
SubmitRepositoryMutationVariables
> = {
export const SubmitRepositoryDocument: DocumentNode<SubmitRepositoryMutation, SubmitRepositoryMutationVariables> = {
kind: 'Document',
definitions: [
{
@@ -777,7 +770,7 @@ export const SubmitRepositoryDocument: TypedDocumentNode<
},
],
};
export const SubmitCommentDocument: TypedDocumentNode<SubmitCommentMutation, SubmitCommentMutationVariables> = {
export const SubmitCommentDocument: DocumentNode<SubmitCommentMutation, SubmitCommentMutationVariables> = {
kind: 'Document',
definitions: [
{
@@ -831,7 +824,7 @@ export const SubmitCommentDocument: TypedDocumentNode<SubmitCommentMutation, Sub
...CommentsPageCommentFragmentDoc.definitions,
],
};
export const VoteDocument: TypedDocumentNode<VoteMutation, VoteMutationVariables> = {
export const VoteDocument: DocumentNode<VoteMutation, VoteMutationVariables> = {
kind: 'Document',
definitions: [
{
2 changes: 1 addition & 1 deletion dev-test/githunt/types.apolloAngular.sdk.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
import * as Apollo from 'apollo-angular';
import * as ApolloCore from 'apollo-client';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.apolloAngular.ts
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import gql from 'graphql-tag';
import { Injectable } from '@angular/core';
import * as Apollo from 'apollo-angular';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.avoidOptionals.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.enumsAsTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.flatten.preResolveTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.immutableTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.preResolveTypes.compatibility.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.preResolveTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.reactApollo.customSuffix.tsx
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import * as ApolloReactCommon from '@apollo/react-common';
import * as ApolloReactComponents from '@apollo/react-components';
import * as ApolloReactHoc from '@apollo/react-hoc';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
2 changes: 1 addition & 1 deletion dev-test/githunt/types.reactApollo.hooks.tsx
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import * as ApolloReactComponents from '@apollo/react-components';
import * as ApolloReactHoc from '@apollo/react-hoc';
import * as ApolloReactHooks from '@apollo/react-hooks';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
2 changes: 1 addition & 1 deletion dev-test/githunt/types.reactApollo.preResolveTypes.tsx
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import * as ApolloReactCommon from '@apollo/react-common';
import * as ApolloReactComponents from '@apollo/react-components';
import * as ApolloReactHoc from '@apollo/react-hoc';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
2 changes: 1 addition & 1 deletion dev-test/githunt/types.reactApollo.tsx
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import * as ApolloReactCommon from '@apollo/react-common';
import * as ApolloReactComponents from '@apollo/react-components';
import * as ApolloReactHoc from '@apollo/react-hoc';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
2 changes: 1 addition & 1 deletion dev-test/githunt/types.stencilApollo.tsx
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import gql from 'graphql-tag';
import * as StencilApollo from 'stencil-apollo';
import { h } from '@stencil/core';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/githunt/types.urql.tsx
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import gql from 'graphql-tag';
import * as React from 'react';
import * as Urql from 'urql';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
13 changes: 4 additions & 9 deletions dev-test/githunt/types.vueApollo.ts
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import gql from 'graphql-tag';
import * as VueApolloComposable from '@vue/apollo-composable';
import * as VueCompositionApi from '@vue/composition-api';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type ReactiveFunction<TParam> = () => TParam;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
@@ -548,10 +548,7 @@ export const SubmitRepositoryDocument = gql`
* });
*/
export function useSubmitRepositoryMutation(
options: VueApolloComposable.UseMutationOptionsWithVariables<
SubmitRepositoryMutation,
SubmitRepositoryMutationVariables
>
options: VueApolloComposable.UseMutationOptions<SubmitRepositoryMutation, SubmitRepositoryMutationVariables>
) {
return VueApolloComposable.useMutation<SubmitRepositoryMutation, SubmitRepositoryMutationVariables>(
SubmitRepositoryDocument,
@@ -590,7 +587,7 @@ export const SubmitCommentDocument = gql`
* });
*/
export function useSubmitCommentMutation(
options: VueApolloComposable.UseMutationOptionsWithVariables<SubmitCommentMutation, SubmitCommentMutationVariables>
options: VueApolloComposable.UseMutationOptions<SubmitCommentMutation, SubmitCommentMutationVariables>
) {
return VueApolloComposable.useMutation<SubmitCommentMutation, SubmitCommentMutationVariables>(
SubmitCommentDocument,
@@ -631,9 +628,7 @@ export const VoteDocument = gql`
* },
* });
*/
export function useVoteMutation(
options: VueApolloComposable.UseMutationOptionsWithVariables<VoteMutation, VoteMutationVariables>
) {
export function useVoteMutation(options: VueApolloComposable.UseMutationOptions<VoteMutation, VoteMutationVariables>) {
return VueApolloComposable.useMutation<VoteMutation, VoteMutationVariables>(VoteDocument, options);
}
export type VoteMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<
2 changes: 1 addition & 1 deletion dev-test/star-wars/types.avoidOptionals.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/star-wars/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/star-wars/types.globallyAvailable.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type Maybe<T> = T | null;
type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/star-wars/types.immutableTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/star-wars/types.preResolveTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/star-wars/types.refetchFn.tsx
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import * as React from 'react';
import * as ApolloReactComponents from '@apollo/react-components';
import * as ApolloReactHoc from '@apollo/react-hoc';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
2 changes: 1 addition & 1 deletion dev-test/star-wars/types.skipSchema.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/star-wars/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/test-message/types.tsx
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import * as Operations from './documents';
import * as ApolloReactCommon from '@apollo/client';
import * as ApolloReactHooks from '@apollo/client';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/test-schema/env.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/test-schema/resolvers-federation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GraphQLResolveInfo } from 'graphql';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
2 changes: 1 addition & 1 deletion dev-test/test-schema/resolvers-root.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GraphQLResolveInfo } from 'graphql';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type RequireFields<T, K extends keyof T> = { [X in Exclude<keyof T, K>]?: T[X] } &
{ [P in K]-?: NonNullable<T[P]> };
/** All built-in and custom scalars, mapped to their actual values */
2 changes: 1 addition & 1 deletion dev-test/test-schema/resolvers-types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GraphQLResolveInfo } from 'graphql';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] };
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type RequireFields<T, K extends keyof T> = { [X in Exclude<keyof T, K>]?: T[X] } &
{ [P in K]-?: NonNullable<T[P]> };
/** All built-in and custom scalars, mapped to their actual values */
Loading