-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
Domain: Comment EmitThe issue relates to the emission of comments when compilingThe issue relates to the emission of comments when compilingExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
TypeScript Version: 3.2.0-dev.201xxxxx
Search Terms:
Code
.ts file
/**
* this will lost
*/
function a()
function a() { }
/**
* this will keep
*/
function b() { }
function c()
/**
* this will keep, but i don't think this is good way
*/
function c() { }
Expected behavior:
all will keep
/**
* this will lost
*/
function a() { }
/**
* this will keep
*/
function b() { }
/**
* this will keep, but i don't think this is good way
*/
function c() { }
Actual behavior:
a is lost
output .js file
function a() { }
/**
* this will keep
*/
function b() { }
/**
* this will keep, but i don't think this is good way
*/
function c() { }
and when it at .d.ts
- a will keep
- b will keep too
- but c will lost
Related Issues:
max-b
Metadata
Metadata
Assignees
Labels
Domain: Comment EmitThe issue relates to the emission of comments when compilingThe issue relates to the emission of comments when compilingExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript