reports/frontend/node_modules/es-toolkit/dist/compat/string/trimStart.d.ts
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

31 lines
No EOL
927 B
TypeScript

//#region src/compat/string/trimStart.d.ts
/**
* Removes leading whitespace or specified characters from a string.
*
* @param string - The string to trim.
* @param chars - The characters to trim from the start of the string.
* @returns Returns the trimmed string.
*
* @example
* trimStart(' abc ');
* // => 'abc '
*
* trimStart('-_-abc-_-', '_-');
* // => 'abc-_-'
*/
declare function trimStart(string?: string, chars?: string): string;
/**
* Removes leading whitespace or specified characters from a string.
*
* @param string - The string to trim.
* @param index - The index parameter (used with guard).
* @param guard - Enables use as an iteratee for methods like `map`.
* @returns Returns the trimmed string.
*
* @example
* trimStart(' abc ', 0, {});
* // => 'abc '
*/
declare function trimStart(string: string, index: string | number, guard: object): string;
//#endregion
export { trimStart };