From d3b7a25713d22602fb5acdaa9151f76681ef0ed1 Mon Sep 17 00:00:00 2001 From: GoudekettingRM Date: Tue, 10 Oct 2023 10:07:32 +0200 Subject: [PATCH] Update isSlug type --- .changeset/brave-cycles-appear.md | 5 +++++ titleize.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/brave-cycles-appear.md diff --git a/.changeset/brave-cycles-appear.md b/.changeset/brave-cycles-appear.md new file mode 100644 index 0000000..f576c31 --- /dev/null +++ b/.changeset/brave-cycles-appear.md @@ -0,0 +1,5 @@ +--- +"titleizejs": patch +--- + +Update isSlug type diff --git a/titleize.d.ts b/titleize.d.ts index 4a0b732..31d3731 100644 --- a/titleize.d.ts +++ b/titleize.d.ts @@ -3,7 +3,7 @@ declare module 'titleizejs' { keepUpperCaseLetters?: boolean; keepUpperCaseWords?: boolean; ignoreSymbols?: string; - isSlug?: boolean; + isSlug?: boolean | string; } export function titleize(input: string, exceptions?: IExceptions): string;