Skip to content

Commit 0c7febe

Browse files
add types in interface
1 parent de797ee commit 0c7febe

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

packages/contentstack-config/src/interfaces/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ export interface SetRateLimitConfig {
3939
default?: boolean;
4040
host?: string;
4141
}
42+
43+
export interface RegionsMap {
44+
[key: string]: Region;
45+
}

packages/contentstack-config/src/utils/region-handler.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { configHandler } from '@contentstack/cli-utilities';
22
import { getContentstackEndpoint } from '@contentstack/utils';
3-
import { Region } from '../interfaces';
4-
interface RegionsMap {
5-
[key: string]: Region;
6-
}
3+
import { Region, RegionsMap } from '../interfaces';
74

85
function validURL(str) {
96
const pattern = new RegExp(

0 commit comments

Comments
 (0)