I am using tsc to execute the following program:
enum e51 {
HTML = 'html',
JSON = 'json',
CSV = 'csv',
}
export default ResponseType;
In the program I provided,”ResponseType” is undefined,and also is not referenced in other files.As a result, tsc did not report any errors. I want to know, is it because this identifier is undefined and unused that tsc ignored this line of code when translating?
New contributor
gaoyue209918_ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.