You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ Similar to `@graphql-codegen/typescript-graphql-files-modules` (https://graphql-
18
18
19
19
The difference is that is uses generic types, so that you have type safety with Apollo (e.g. `useQuery` / `useMutation`).
20
20
21
+
The `apollo-typed-documents` plugin also accepts the same `modulePathPrefix`, `relativeToCwd` and `prefix` config settings as [typescript-graphql-files-modules](https://graphql-code-generator.com/docs/plugins/typescript-graphql-files-modules).
22
+
21
23
### Install
22
24
23
25
```sh
@@ -54,8 +56,6 @@ generates:
54
56
```
55
57
<!-- AUTO-GENERATED-CONTENT:END -->
56
58
57
-
The `apollo-typed-documents` plugin also accepts the same `modulePathPrefix`, `relativeToCwd` and `prefix` config settings as [typescript-graphql-files-modules](https://graphql-code-generator.com/docs/plugins/typescript-graphql-files-modules).
58
-
59
59
`tsconfig.json`:
60
60
61
61
Add `node_modules/apollo-typed-documents/lib/reactHooks.d.ts` in `include` to override the typings for `@apollo/react-hooks`, so that types can be inferred from typed documents.
0 commit comments