graphql/codegen/docs/guides/react-vue #8502
Replies: 4 comments 1 reply
-
It doesn't works with <script setup> [@vue/compiler-sfc] Unresolvable type: TSConditionalType src/gql/fragment-masking.ts |
Beta Was this translation helpful? Give feedback.
-
It doesn't works with <script setup> [@vue/compiler-sfc] Unresolvable type: TSConditionalType
src/gql/fragment-masking.ts
4 |
5 |
6 | export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 | infer TType,
| ^^^^^^^^^^^^^^
8 | any
| ^^^^^
9 | >
| ^
10 | ? [TType] extends [{ ' $fragmentName'?: infer TKey }]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 | ? TKey extends string
| ^^^^^^^^^^^^^^^^^^^^^^^^^
12 | ? { ' $fragmentRefs'?: { [key in TKey]: TType } }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 | : never
| ^^^^^^^^^^^^^
14 | : never
| ^^^^^^^^^^^
15 | : never;
| ^^^^^^^^^ |
Beta Was this translation helpful? Give feedback.
-
At the moment it looks like GraphQL SP doesn't seem to support syntax highlighting? I'm getting all the other functionality (autocomplete, hover info, validation), but no syntax highlighting. Syntax highlighting also doesn't seem to be listed in the current version of their readme. |
Beta Was this translation helpful? Give feedback.
-
Could this feature be elaborated upon? I have one fragment that can be referenced anywhere by this feature, and another fragment that produces not found errors. I'm sure something is misconfigured, but without understanding how this feature works I'm at a loss to troubleshoot and fix it myself. |
Beta Was this translation helpful? Give feedback.
-
graphql/codegen/docs/guides/react-vue
GraphQL Code Generator: documentation
https://www.the-guild.dev/graphql/codegen/docs/guides/react-vue
Beta Was this translation helpful? Give feedback.
All reactions