You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Signature should be capitalize<T>(string: T): Capitalize<T>
Actual Behavior
Signature is capitalize<T>(string: T): Capitalize
Steps to reproduce the bug
/** * Capitalize the first letter of a string. */exportfunctioncapitalize<Textendsstring>(string: T){return(string==='' ? '' : string[0].toUpperCase()+string.slice(1))asCapitalize<T>;}
The bug does not occur if you add an explicit return type annotation.