graphql-typed-client
graphql-typed-client copied to clipboard
Fix generated code for type-guards
Fixes #37
Explicitly types the helper array {name}_possibleTypes as String[].
An alternative would be to check if the arrays are empty, and don't emit the code in that case (in lines 21 and 24).