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.
Environment
Typedoc version: 0.23.17
TypeScript version: 4.7.4
Node.js version: 16.14.0
OS: macOS 12.6
The text was updated successfully, but these errors were encountered:
Search terms
Signature, return type, type parameter
Expected Behavior
Signature should be
capitalize<T>(string: T): Capitalize<T>
Actual Behavior
Signature is
capitalize<T>(string: T): Capitalize
Steps to reproduce the bug
The bug does not occur if you add an explicit return type annotation.
Environment
The text was updated successfully, but these errors were encountered: