typedoc-vitepress-theme-example / utilities / truncateString
truncateString()
ts
truncateString(input, maxLength): string
Function to truncate a string to a specified length.
Parameters
• input: string
The input string.
• maxLength: number
The maximum length of the truncated string.
Returns
string
The truncated string.