GraphQL field of type Int being auto-generated as a String

I have a GraphQL field that is of type Int, but the autogenerated types represent it as String. Why does this happen?

Playground:

Autogenerated type: