Skip to content

Commit

Permalink
Postfix #97
Browse files Browse the repository at this point in the history
  • Loading branch information
mishushakov committed Feb 25, 2024
1 parent bc1d582 commit b12a589
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 71 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "git",
"url": "https://github.com/stepci/garph"
},
"version": "0.6.7",
"version": "0.6.8",
"license": "MIT",
"main": "dist/index.js",
"scripts": {
Expand Down
6 changes: 2 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ export type InferUnionNames<T> = T extends AnyUnion ? ObjectToUnion<T['_inner']>
export type InferResolvers<T extends AnyTypes, X extends InferResolverConfig> = {
[K in keyof T]: K extends 'Subscription' ? {
[G in keyof T[K]['_shape']]?: {
subscribe: (parent: {}, args: InferArg<T[K]['_shape'][G]>, context: X['context'], info: GraphQLResolveInfo) => MaybePromise<AsyncIterator<{
[key in G]: Infer<T[K]['_shape'][G], { omitResolver: AnyOmitResolver }>
}>>
subscribe: (parent: {}, args: InferArg<T[K]['_shape'][G]>, context: X['context'], info: GraphQLResolveInfo) => MaybePromise<AsyncIterator<{[S in G]: Infer<T[K]['_shape'][G], { omitResolver: AnyOmitResolver }>}>>
resolve?: (value: Infer<T[K]['_shape'][G]>, args: InferArg<T[K]['_shape'][G]>, context: X['context'], info: GraphQLResolveInfo) => MaybePromise<Infer<T[K]['_shape'][G], { omitResolver: AnyOmitResolver }>>
}
} : {
Expand All @@ -158,7 +156,7 @@ export type InferResolvers<T extends AnyTypes, X extends InferResolverConfig> =
export type InferResolversStrict<T extends AnyTypes, X extends InferResolverConfig> = {
[K in keyof T]: K extends 'Subscription' ? {
[G in keyof T[K]['_shape']]: {
subscribe: (parent: {}, args: InferArg<T[K]['_shape'][G]>, context: X['context'], info: GraphQLResolveInfo) => MaybePromise<AsyncIterator<{ [G in keyof T[K]['_shape']]: Infer<T[K]['_shape'][G], { omitResolver: AnyOmitResolver }> }>>
subscribe: (parent: {}, args: InferArg<T[K]['_shape'][G]>, context: X['context'], info: GraphQLResolveInfo) => MaybePromise<AsyncIterator<{[S in G]: Infer<T[K]['_shape'][G], { omitResolver: AnyOmitResolver }>}>>
resolve?: (value: Infer<T[K]['_shape'][G]>, args: InferArg<T[K]['_shape'][G]>, context: X['context'], info: GraphQLResolveInfo) => MaybePromise<Infer<T[K]['_shape'][G], { omitResolver: AnyOmitResolver }>>
}
} : {
Expand Down
42 changes: 21 additions & 21 deletions www/api/classes/GarphSchema.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#### Defined in

[index.ts:625](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L625)
[index.ts:625](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L625)

## Properties

Expand All @@ -27,7 +27,7 @@

#### Defined in

[index.ts:601](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L601)
[index.ts:601](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L601)

___

Expand All @@ -46,7 +46,7 @@ ___

#### Defined in

[index.ts:612](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L612)
[index.ts:612](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L612)

___

Expand All @@ -56,7 +56,7 @@ ___

#### Defined in

[index.ts:605](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L605)
[index.ts:605](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L605)

___

Expand All @@ -66,7 +66,7 @@ ___

#### Defined in

[index.ts:599](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L599)
[index.ts:599](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L599)

## Methods

Expand All @@ -80,7 +80,7 @@ ___

#### Defined in

[index.ts:710](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L710)
[index.ts:710](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L710)

___

Expand Down Expand Up @@ -108,7 +108,7 @@ ___

#### Defined in

[index.ts:641](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L641)
[index.ts:641](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L641)

___

Expand Down Expand Up @@ -136,7 +136,7 @@ ___

#### Defined in

[index.ts:651](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L651)
[index.ts:651](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L651)

___

Expand Down Expand Up @@ -164,7 +164,7 @@ ___

#### Defined in

[index.ts:670](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L670)
[index.ts:670](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L670)

___

Expand All @@ -178,7 +178,7 @@ ___

#### Defined in

[index.ts:706](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L706)
[index.ts:706](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L706)

___

Expand All @@ -192,7 +192,7 @@ ___

#### Defined in

[index.ts:698](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L698)
[index.ts:698](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L698)

___

Expand Down Expand Up @@ -220,7 +220,7 @@ ___

#### Defined in

[index.ts:664](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L664)
[index.ts:664](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L664)

___

Expand All @@ -234,7 +234,7 @@ ___

#### Defined in

[index.ts:702](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L702)
[index.ts:702](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L702)

___

Expand Down Expand Up @@ -262,7 +262,7 @@ ___

#### Defined in

[index.ts:688](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L688)
[index.ts:688](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L688)

___

Expand Down Expand Up @@ -290,7 +290,7 @@ ___

#### Defined in

[index.ts:635](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L635)
[index.ts:635](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L635)

___

Expand All @@ -316,7 +316,7 @@ ___

#### Defined in

[index.ts:716](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L716)
[index.ts:716](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L716)

___

Expand All @@ -336,7 +336,7 @@ ___

#### Defined in

[index.ts:619](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L619)
[index.ts:619](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L619)

___

Expand Down Expand Up @@ -364,7 +364,7 @@ ___

#### Defined in

[index.ts:682](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L682)
[index.ts:682](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L682)

___

Expand All @@ -378,7 +378,7 @@ ___

#### Defined in

[index.ts:694](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L694)
[index.ts:694](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L694)

___

Expand Down Expand Up @@ -406,7 +406,7 @@ ___

#### Defined in

[index.ts:629](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L629)
[index.ts:629](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L629)

___

Expand Down Expand Up @@ -434,4 +434,4 @@ ___

#### Defined in

[index.ts:676](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L676)
[index.ts:676](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L676)
18 changes: 9 additions & 9 deletions www/api/classes/Type.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#### Defined in

[index.ts:13](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L13)
[index.ts:13](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L13)

___

Expand All @@ -40,7 +40,7 @@ ___

#### Defined in

[index.ts:11](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L11)
[index.ts:11](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L11)

___

Expand All @@ -50,7 +50,7 @@ ___

#### Defined in

[index.ts:10](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L10)
[index.ts:10](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L10)

___

Expand All @@ -60,7 +60,7 @@ ___

#### Defined in

[index.ts:9](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L9)
[index.ts:9](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L9)

___

Expand All @@ -70,7 +70,7 @@ ___

#### Defined in

[index.ts:12](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L12)
[index.ts:12](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L12)

___

Expand All @@ -80,7 +80,7 @@ ___

#### Defined in

[index.ts:14](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L14)
[index.ts:14](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L14)

___

Expand All @@ -90,7 +90,7 @@ ___

#### Defined in

[index.ts:15](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L15)
[index.ts:15](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L15)

## Methods

Expand All @@ -110,7 +110,7 @@ ___

#### Defined in

[index.ts:22](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L22)
[index.ts:22](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L22)

___

Expand All @@ -130,4 +130,4 @@ ___

#### Defined in

[index.ts:17](https://github.com/stepci/garph/blob/ca1b8bd/src/index.ts#L17)
[index.ts:17](https://github.com/stepci/garph/blob/bc1d582/src/index.ts#L17)
Loading

0 comments on commit b12a589

Please sign in to comment.