Constructors
constructor
- new default(...segments: ISegment[]): default
-
Properties
Optional
matchedEnds
random
Accessors
formatDates
- get formatDates(): undefined | boolean
-
Returns undefined | boolean
formatNumbers
- get formatNumbers(): undefined | boolean
-
Returns undefined | boolean
segments
- get segments(): ISegment[]
-
Methods
formatValue
- formatValue(value: unknown): string | Iterable<IStringSection>
-
interpolate
- interpolate(str: string, ...args: any[]): IStringSection[]
-
Parameters
-
str: string
-
Rest
...args: any[]
interpolateString
- interpolateString(str: string, ...args: any[]): string
-
Parameters
-
str: string
-
Rest
...args: any[]
Returns string
Static
combineLikeSections
- combineLikeSections(sections: IStringSection[], ignoreKeys?: string[]): void
-
Parameters
-
-
ignoreKeys: string[] = []
Returns void