From f7ece2c6b62dda7c47a0459660fb3dd93ea62375 Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Mon, 8 Jan 2024 14:20:26 -0600 Subject: [PATCH] Add split option to README --- packages/change-case/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/change-case/README.md b/packages/change-case/README.md index 72a72ad5..ac683289 100644 --- a/packages/change-case/README.md +++ b/packages/change-case/README.md @@ -37,7 +37,7 @@ All methods accept an `options` object as the second argument: - `delimiter?: string` The character to use between words. Default depends on method, e.g. `_` in snake case. - `locale?: string[] | string | false` Lower/upper according to specified locale, defaults to host environment. Set to `false` to disable. -- `separateNumbers?: boolean` Splits `foo123` into `foo 123` instead of keeping them together. Defaults to `false`. +- `split?: (value: string) => string[]` A function to define how the input is split into words. Defaults to `split`. - `prefixCharacters?: string` Retain at the beginning of the string. Defaults to `""`. Example: use `"_"` to keep the underscores in `__typename`. - `suffixCharacters?: string` Retain at the end of the string. Defaults to `""`. Example: use `"_"` to keep the underscore in `type_`.