Skip to content

Commit a2abad1

Browse files
Fix JSDoc return type for formatTokenStats function
The @returns comment incorrectly described the function as returning a formatted string for display, but it actually returns an object with 'input' and 'output' strings. Corrected for accuracy.
1 parent 4a48388 commit a2abad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/utils/formatTokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function formatTokenCount(count: number | undefined): string {
2929
* @param tokensOut - Output tokens
3030
* @param cacheReads - Cache read tokens (optional)
3131
* @param cacheLabel - Localized cache label
32-
* @returns Formatted string for display
32+
* @returns { { input: string; output: string } } An object with formatted input and output token strings.
3333
*/
3434
export function formatTokenStats(
3535
tokensIn?: number,

0 commit comments

Comments
 (0)