angular-extensions
Advanced tools
Comparing version 14.0.72 to 14.0.73
declare global { | ||
interface StartCaseOptions { | ||
/** | ||
* Should insert a space before digit present in string. E.g. "every10Month" => "Every 10 Month" | ||
*/ | ||
insertSpaceBeforeDigits?: boolean; | ||
/** | ||
* Should insert a space after digit present in string. E.g. "calculate10e" => "Calculate 10 e" | ||
*/ | ||
insertSpaceAfterDigits?: boolean; | ||
/** | ||
* Should insert a space before abbreviation present in string. E.g. "FaceID" => "Face ID" | ||
*/ | ||
insertSpaceBeforeAbbreviations?: boolean; | ||
/** | ||
* Should make single letter part present in string. E.g. "pH" => "PH" | ||
*/ | ||
capitalizeSingleLetters?: boolean; | ||
} | ||
interface String { | ||
trimEnd(this: string, charList?: string): string; | ||
toStartCase(this: string, options?: StartCaseOptions): string; | ||
} | ||
@@ -122,2 +141,3 @@ interface Dictionary<T> { | ||
}): FormData; | ||
export declare function toStartCase(this: string, options?: StartCaseOptions): string; | ||
export {}; |
{ | ||
"name": "angular-extensions", | ||
"version": "14.0.72", | ||
"version": "14.0.73", | ||
"repository": "https://github.com/nazar-kuzo/angular-extensions.git", | ||
@@ -5,0 +5,0 @@ "author": "Nazar Kuzo", |
@@ -11,8 +11,9 @@ import { PipeTransform } from "@angular/core"; | ||
* @param insertSpaceBeforeAbbreviations Should insert a space before abbreviation present in string. E.g. "FaceID" => "Face ID" | ||
* @param insertSpaceAfterDigits Should insert a space after digit present in string. E.g. "calculate10e" => "Calculate 10 e" | ||
* @param capitalizeSingleLetters Should make single letter part present in string. E.g. "pH" => "PH" | ||
* @returns Formatted string | ||
*/ | ||
transform(value?: string, insertSpaceBeforeDigits?: boolean, insertSpaceBeforeAbbreviations?: boolean): string; | ||
private startCase; | ||
transform(value?: string, insertSpaceBeforeDigits?: boolean, insertSpaceBeforeAbbreviations?: boolean, insertSpaceAfterDigits?: boolean, capitalizeSingleLetters?: boolean): string; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<StartCasePipe, never>; | ||
static ɵpipe: i0.ɵɵPipeDeclaration<StartCasePipe, "startCase", false>; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2211662
16796