New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Typescript resolvers] type vs interface and typesPrefix #1527
Comments
@P4sca1 which version do you use? I assume it's Also, we chose to use interface A {
a1: string;
}
interface A { // No error, and "A" will have both fields
a2: string;
} While type A = {
a1: string;
}
type A = { // Error
a2: string;
} |
Okay that makes sense now. |
LGTM! |
Is there any reason why we use
export type
instead ofexport interface
?Also, it is kinda confusing that some types / interfaces are prefixed with
I
while others are not. In my opinion, nothing should be prefixed by default and the prefix should only be added depending on thetypesPrefix
option.Right now when doing
typesPrefix: I
, some types have 2I
prefixed.The text was updated successfully, but these errors were encountered: