Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: emit nominal tag in declaration
The `Nominal` type has not been working (possibly for a long time) because the tag was not being emitted by the typescript compiler. This didn't show up in testing because the tests are not run against the emitted definitions. Instead of emitting: ```typescript class Tagged<N extends string> { private __tagged__: N } ``` we were getting ```typescript class Tagged<N extends string> { __tagged__ } ``` thus nothing was tagged any longer. Switching from `private` to `protected` fixes the emit issue while still hiding the tag from the end user.
- Loading branch information