graphql-typed-client icon indicating copy to clipboard operation
graphql-typed-client copied to clipboard

Fix generated code for type-guards

Open DanielRose opened this issue 5 years ago • 0 comments

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).

DanielRose avatar Aug 31 '20 11:08 DanielRose