diff --git a/__fixtures__/test-project-rsc-kitchen-sink/web/src/lib/formatters.tsx b/__fixtures__/test-project-rsc-kitchen-sink/web/src/lib/formatters.tsx index 8ab9e806e3cd..8e5c4376186d 100644 --- a/__fixtures__/test-project-rsc-kitchen-sink/web/src/lib/formatters.tsx +++ b/__fixtures__/test-project-rsc-kitchen-sink/web/src/lib/formatters.tsx @@ -25,7 +25,7 @@ export const jsonDisplay = (obj: unknown) => { ) } -export const truncate = (value: string | number) => { +export const truncate = (value: string | number | bigint) => { let output = value?.toString() ?? '' if (output.length > MAX_STRING_LENGTH) { diff --git a/__fixtures__/test-project/web/src/lib/formatters.tsx b/__fixtures__/test-project/web/src/lib/formatters.tsx index 8ab9e806e3cd..8e5c4376186d 100644 --- a/__fixtures__/test-project/web/src/lib/formatters.tsx +++ b/__fixtures__/test-project/web/src/lib/formatters.tsx @@ -25,7 +25,7 @@ export const jsonDisplay = (obj: unknown) => { ) } -export const truncate = (value: string | number) => { +export const truncate = (value: string | number | bigint) => { let output = value?.toString() ?? '' if (output.length > MAX_STRING_LENGTH) { diff --git a/packages/cli/src/commands/generate/scaffold/templates/lib/formatters.tsx.template b/packages/cli/src/commands/generate/scaffold/templates/lib/formatters.tsx.template index 8ab9e806e3cd..8e5c4376186d 100644 --- a/packages/cli/src/commands/generate/scaffold/templates/lib/formatters.tsx.template +++ b/packages/cli/src/commands/generate/scaffold/templates/lib/formatters.tsx.template @@ -25,7 +25,7 @@ export const jsonDisplay = (obj: unknown) => { ) } -export const truncate = (value: string | number) => { +export const truncate = (value: string | number | bigint) => { let output = value?.toString() ?? '' if (output.length > MAX_STRING_LENGTH) {