UNPKG

@visulima/string

Version:

Functions for manipulating strings.

20 lines (19 loc) 701 B
import { b as CaseOptions, d as FlipCase } from "../packem_shared/types.d-fhe030jX.js"; import "../packem_shared/types.d-CmNvyl4l.js"; /** * Options specific to flip case operations. * Note: handleEmoji is not needed as the function preserves emojis by default */ type FlipOptions = Omit<CaseOptions, "handleEmoji">; /** * Flips the case of each character in a string. * @example * ```typescript * flipCase("FooBar") // => "fOObAR" * flipCase("foobar") // => "FOOBAR" * flipCase("FOOBAR") // => "foobar" * flipCase("XMLHttpRequest") // => "xmlhTTPrEQUEST" * ``` */ declare const flipCase: <T extends string = string>(value?: T, options?: FlipOptions) => FlipCase<T>; export { FlipOptions, flipCase };