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
18 changes: 12 additions & 6 deletions dev-test/githunt/types.apolloAngular.sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,16 +570,22 @@ export class VoteGQL extends Apollo.Mutation<VoteMutation, VoteMutationVariables

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;

interface WatchQueryOptionsAlone<V>
extends Omit<ApolloCore.WatchQueryOptions<V>, 'query' | 'variables'> {}
interface WatchQueryOptionsAlone<V> extends Omit<
ApolloCore.WatchQueryOptions<V>,
'query' | 'variables'
> {}

interface QueryOptionsAlone<V> extends Omit<ApolloCore.QueryOptions<V>, 'query' | 'variables'> {}

interface MutationOptionsAlone<T, V>
extends Omit<ApolloCore.MutationOptions<T, V>, 'mutation' | 'variables'> {}
interface MutationOptionsAlone<T, V> extends Omit<
ApolloCore.MutationOptions<T, V>,
'mutation' | 'variables'
> {}

interface SubscriptionOptionsAlone<V>
extends Omit<ApolloCore.SubscriptionOptions<V>, 'query' | 'variables'> {}
interface SubscriptionOptionsAlone<V> extends Omit<
ApolloCore.SubscriptionOptions<V>,
'query' | 'variables'
> {}

@Injectable({ providedIn: 'root' })
export class ApolloAngularSDK {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"jest-junit": "16.0.0",
"lint-staged": "16.2.7",
"patch-package": "8.0.1",
"prettier": "3.6.2",
"prettier": "3.8.1",
"rimraf": "6.1.3",
"ts-jest": "29.4.6",
"ts-node": "10.9.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/plugins/c-sharp/c-sharp-operations/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { RawClientSideBasePluginConfig } from '@graphql-codegen/visitor-plugin-c
* @description This plugin generates C# `class` based on your GraphQL operations.
*/
export interface CSharpOperationsRawPluginConfig
extends RawClientSideBasePluginConfig,
MemberNameConventionConfig {
extends RawClientSideBasePluginConfig, MemberNameConventionConfig {
/**
* @default GraphQLCodeGen
* @description Allow you to customize the namespace name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ describe('generic-sdk - GraphQL v16+', () => {
{
location: '',
document: parse(/* GraphQL */ `
"""description (becomes JSDoc)"""
"""
description (becomes JSDoc)
"""
query feed {
feed {
id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ describe('graphql-request - GraphQL v16+', () => {
{
location: '',
document: parse(/* GraphQL */ `
"""description (becomes JSDoc)"""
"""
description (becomes JSDoc)
"""
query feed {
feed {
id
Expand Down
22 changes: 12 additions & 10 deletions packages/plugins/typescript/jit-sdk/tests/jit-sdk.v16+.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@ describe('jit-sdk - GraphQL 16+', () => {
{
location: '',
document: parse(/* GraphQL */ `
"""description (becomes JSDoc)"""
query feed {
feed {
id
commentCount
repository {
owner {
avatar_url
"""
description (becomes JSDoc)
"""
query feed {
feed {
id
commentCount
repository {
owner {
avatar_url
}
}
}
}
}
`),
`),
},
],
{},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ describe('React Apollo - GraphQL v16+', () => {
{
location: '',
document: parse(/* GraphQL */ `
"""description for feed"""
"""
description for feed
"""
query Test {
feed {
id
Expand Down
3 changes: 2 additions & 1 deletion packages/plugins/typescript/react-query/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ export interface BaseReactQueryPluginConfig {
*
*/
export interface ReactQueryRawPluginConfig
extends Omit<
extends
Omit<
RawClientSideBasePluginConfig,
| 'documentMode'
| 'noGraphQLTag'
Expand Down
3 changes: 2 additions & 1 deletion packages/plugins/typescript/solid-query/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export interface BaseSolidQueryPluginConfig {
*
*/
export interface SolidQueryRawPluginConfig
extends Omit<
extends
Omit<
RawClientSideBasePluginConfig,
| 'documentMode'
| 'noGraphQLTag'
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6834,10 +6834,10 @@ prettier-plugin-sh@^0.15.0:
mvdan-sh "^0.10.1"
sh-syntax "^0.4.2"

prettier@3.6.2:
version "3.6.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.6.2.tgz#ccda02a1003ebbb2bfda6f83a074978f608b9393"
integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==
prettier@3.8.1:
version "3.8.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.8.1.tgz#edf48977cf991558f4fcbd8a3ba6015ba2a3a173"
integrity sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==

prettier@^2.7.1:
version "2.8.8"
Expand Down