fix: remove unused StringConstructor from return type

Address review feedback from @michael-s-molina: Since the function
no longer returns String, remove StringConstructor from the return
type and update the misleading test description.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-02-05 17:17:31 -08:00
parent 73eb0c11d4
commit 65cfebd889
2 changed files with 2 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ export function getTooltipTimeFormatter(
export function getXAxisFormatter(
format?: string,
): TimeFormatter | StringConstructor | undefined {
): TimeFormatter | undefined {
if (format === SMART_DATE_ID) {
return getSmartDateFormatter();
}