Closed VojtaStanek closed 2 years ago
Thanks a lot!
3.1.0
Custom inline type
{
"scalarTypeMap": {
"GraphQLPoint": "{readonly x: number, readonly: number}"
// Be careful, this value is string
}
}
Custom non-inline type
{
"scalarTypeMap": {
"GraphQLPoint": {
typeName: "Point",
importSource: "commons/Type"
// "import { Point } from '../common/Types';" will be generated
}
}
}
I would like to specify custom types such as
1 | 2 | 3
,unknown
,string | undefined
.fixes #1