get
get<
K>(configOpt):configOpts[K]
Retrieves the value of a specified configuration option.
Type parameters
Section titled “Type parameters”• K extends string | number
Parameters
Section titled “Parameters”• configOpt: K
The key of the configuration option to retrieve.
Returns
Section titled “Returns”configOpts[K]
The value of the configuration option.
Remarks
Section titled “Remarks”Throws an error if the requested configuration option is not set.
Example
Section titled “Example”// Retrieve the current API instanceconst apiInstance = get('api');Throws
Section titled “Throws”| Generic not configured error.