Skip to content

Checking validity of generated types? #5791

Answered by tvvignesh
Lilja asked this question in Ideas
Discussion options

You must be logged in to vote

@dotansimha @ardatan I guess adding some sort of checksum to the generated file would solve this right?

  • Generate the checksum of the final schema retrieved using the config file for every project separately
  • Generate the checksum of every operation separately
  • Add the checksum to the generated TS file
  • Comparewith the files when running --check as suggested

What I am still thinking of though is: "Is it really required? Considering the fact that you can always regenerate the TS files and overwrite the types again keeping things in sync"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dotansimha
Comment options

Answer selected by dotansimha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants