Skip to content

Commit c5bdf4c

Browse files
docs: region config (#172)
1 parent c7221ee commit c5bdf4c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const { AdobeState } = require('./AdobeState')
4242
* to use ootb credentials to access the state management service. OpenWhisk
4343
* namespace and auth can also be passed through environment variables:
4444
* `__OW_NAMESPACE` and `__OW_API_KEY`
45+
* @param {string} [config.region] optional region to use, accepted values: `amer` (default), `emea`
4546
* @returns {Promise<AdobeState>} An AdobeState instance
4647
*/
4748
async function init (config = {}) {

types.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ export type OpenWhiskCredentials = {
158158
* to use ootb credentials to access the state management service. OpenWhisk
159159
* namespace and auth can also be passed through environment variables:
160160
* `__OW_NAMESPACE` and `__OW_API_KEY`
161+
* @param [config.region] - optional region to use, accepted values: `amer` (default), `emea`
161162
* @returns An AdobeState instance
162163
*/
163164
export function init(config?: {
164165
ow?: OpenWhiskCredentials;
166+
region?: string;
165167
}): Promise<AdobeState>;
166168

0 commit comments

Comments
 (0)