-
Hi! Now i try use you tools for migration from apollo codegen. In my project i use >100 queries to graphql like this:
Apollo generate interface:
Can i generate some think like this with you tools? I use this interfaces for extends internal data models. |
Beta Was this translation helpful? Give feedback.
Answered by
n1ru4l
Apr 29, 2022
Replies: 1 comment 8 replies
-
It is not possible to generate interfaces instead of types. If you want to extend them with an interface you can simply use the extends keyword. type A = {
a: number;
b: number;
}
interface B extends A {
c: 1
}
function a(b: B) {
b.a
b.b
b.c
} |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
n1ru4l
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is not possible to generate interfaces instead of types.
If you want to extend them with an interface you can simply use the extends keyword.
Example on TypeScript Playground