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