Skip to content

Commit 0a40a56

Browse files
authored
Adjust acceptable options values (#980)
1 parent b6cb797 commit 0a40a56

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Adjust acceptable runtime options values

src/v2/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { ParamSpec } from './params/types';
3333
/**
3434
* List of all regions supported by Cloud Functions v2
3535
*/
36-
export const SUPPORTED_REGIONS = ['us-west1'] as const;
36+
export const SUPPORTED_REGIONS = ['us-west1', 'europe-west4'] as const;
3737

3838
/**
3939
* A region known to be supported by CloudFunctions v2

src/v2/providers/https.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface HttpsOptions extends Omit<options.GlobalOptions, 'region'> {
4040
| options.SupportedRegion
4141
| string
4242
| Array<options.SupportedRegion | string>;
43-
cors?: string | boolean | RegExp | (string | RegExp)[];
43+
cors?: string | boolean | RegExp | Array<string | RegExp>;
4444
}
4545

4646
export type HttpsFunction = ((

0 commit comments

Comments
 (0)