Typescript DSL for GraphQL.
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
}
}
}
Allow less serious user illegal code to be accepted.
Now, some illegal code can be accepted by code generator, they will not cause errors, but warnings: