--statement-typename-introspection=false
Flag Fails to Remove __typename
in Generated Types
#920
Labels
amplify-codegen
Issues on amplify-codegen
bug
Something isn't working
transferred
Issue has been transferred from another Amplify repository
Environment information
Describe the bug
When running the following command:
the generated TypeScript types still contain
__typename
fields, even though--statement-typename-introspection=false
is supposed to prevent them. Meanwhile, the actualclient.models.*
responses from Amplify do not include these__typename
properties, leading to mismatched shapes in the generated types vs. the returned data.Reproduction steps
./src/store/api/generated
still include__typename
fields.client.models.*
(which do not include__typename
) to the generated types (which do include it) and note the mismatch.The text was updated successfully, but these errors were encountered: