getString Method

Overloads
getString(settingName, defaultValue?)  
getString(settingName, defaultValue)  

getString(settingName, defaultValue?)

getString(settingName: string, defaultValue?: string): undefined | string

Parameter Type Description
settingName string  
defaultValue string  

Returns - undefined | string



getString(settingName, defaultValue)

Look up the value of a string Setting named settingName, returning defaultValue if no such value is defined.

getString(settingName: string, defaultValue: string): string

@throws Error if the setting exists but is not a string.

Parameter Type Description
settingName string  
defaultValue string  

Returns - string


Defined in

Last Updated: 21 November, 2024