Closed lynn closed 5 days ago
LGTM. Thanks - let me know if you want me to push a new release that uses this.
Thanks! It matters a little less than I originally thought; I should have just been using the Enum.fromBranch()
API instead of making my own { discriminator: Branch.discriminator }
objects. So I'm doing that now, and I'm not blocked on having this in a release.
It looks like
discriminator = 3 as const
lets tsc make somewhat more correct type inferences thandiscriminator: number = 3 as 3
.