@visulima/string
Version:
Functions for manipulating strings.
16 lines (15 loc) • 629 B
TypeScript
import { L as LocaleOptions, U as UpperFirst } from "../packem_shared/types.d-fhe030jX.js";
import "../packem_shared/types.d-CmNvyl4l.js";
/**
* Converts first character to upper case.
* @param value The string to convert.
* @param options Options for case conversion.
* @returns The string with its first character converted to uppercase.
* @example
* ```typescript
* upperFirst("hello world!") // => "Hello world!"
* upperFirst("istanbul", { locale: "tr" }) // => "İstanbul"
* ```
*/
declare const upperFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => UpperFirst<T>;
export { upperFirst as default };