Closed krhoda closed 3 years ago
Latest commit: |
e5510a1
|
Status: | ✅ Deploy successful! |
Preview URL: | https://5167e522.tzprofiles.pages.dev |
That's quite a few places to add a new claim in. Does the type system catches omissions in the various switch statements?
Yes, that's what the exhaustiveCheck
does is force TS to make sure that all types are accounted for in a switch statement without a default
clause. It is quite a few places to add the new claim in, but getting the UI generated off of it is a big win. When copy is changed, you just have to adjust a data structure rather than find all the places it was hard coded.
…ding new claim types
This should be merged sooner than the Instagram claim will be done (pending approval of FB and all that) because it creates a generalized way to add new claims along with README material to aid in those efforts.