Currently annotation that are not valid javascript identifiers will render as invalid typescript when compiled for thrift-server. This adds a simple check on the annotation name, and if it contains special characters that are not valid in a js identifier, it wraps the identifier in a string. JS objects support any string as a key, so this should be 100% compatible with the way annotations are currently handled.
Currently annotation that are not valid javascript identifiers will render as invalid typescript when compiled for thrift-server. This adds a simple check on the annotation name, and if it contains special characters that are not valid in a js identifier, it wraps the identifier in a string. JS objects support any string as a key, so this should be 100% compatible with the way annotations are currently handled.