Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
utilities/string/Interpolator
default
Class default
Hierarchy
default
Index
Constructors
constructor
Properties
matched
Ends?
random
Accessors
format
Dates
format
Numbers
segments
Methods
format
Value
interpolate
interpolate
String
set
Random
with
combine
Like
Sections
Constructors
constructor
new default
(
...
segments
:
ISegment
[]
)
:
default
Parameters
Rest
...
segments:
ISegment
[]
Returns
default
Properties
Optional
matched
Ends
matched
Ends
?:
Ends
random
random
:
Random
<
IRandomGenerator
<
any
>
>
= generalRandom
Accessors
format
Dates
get
formatDates
(
)
:
undefined
|
boolean
Returns
undefined
|
boolean
format
Numbers
get
formatNumbers
(
)
:
undefined
|
boolean
Returns
undefined
|
boolean
segments
get
segments
(
)
:
ISegment
[]
Returns
ISegment
[]
Methods
format
Value
format
Value
(
value
:
unknown
)
:
string
|
Iterable
<
IStringSection
>
Parameters
value:
unknown
Returns
string
|
Iterable
<
IStringSection
>
interpolate
interpolate
(
str
:
string
,
...
args
:
any
[]
)
:
IStringSection
[]
Parameters
str:
string
Rest
...
args:
any
[]
Returns
IStringSection
[]
interpolate
String
interpolate
String
(
str
:
string
,
...
args
:
any
[]
)
:
string
Parameters
str:
string
Rest
...
args:
any
[]
Returns
string
set
Random
set
Random
(
random
:
Random
<
IRandomGenerator
<
any
>
>
)
:
default
Parameters
random:
Random
<
IRandomGenerator
<
any
>
>
Returns
default
with
with
(
options
:
IInterpolationOptions
)
:
default
Parameters
options:
IInterpolationOptions
Returns
default
Static
combine
Like
Sections
combine
Like
Sections
(
sections
:
IStringSection
[]
, ignoreKeys
?:
string
[]
)
:
void
Parameters
sections:
IStringSection
[]
ignoreKeys:
string
[]
= []
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Navigation
Modding Guide
Module Index
Common Modules
@Register
IDoodadDescription
IItemDescription
ITerrainDescription
ITileEventDescription
ICreatureDescription
In This Module
default
constructor
matched
Ends?
random
format
Dates
format
Numbers
segments
format
Value
interpolate
interpolate
String
set
Random
with
combine
Like
Sections
Generated using
TypeDoc