Skip to content

Commit 7b64752

Browse files
committed
feat: add return type to parseRuntimeParams
1 parent 7b826c3 commit 7b64752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Common/Common.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import moment from 'moment'
18-
import { RuntimeParamsAPIResponseType } from '@Shared/types'
18+
import { RuntimeParamsAPIResponseType, RuntimeParamsListItemType } from '@Shared/types'
1919
import { stringComparatorBySortOrder } from '@Shared/Helpers'
2020
import { get, post } from './Api'
2121
import { ROUTES } from './Constants'
@@ -193,7 +193,7 @@ const processCDMaterialsApprovalInfo = (enableApproval: boolean, cdMaterialsResu
193193
}
194194
}
195195

196-
export const parseRuntimeParams = (response: RuntimeParamsAPIResponseType) =>
196+
export const parseRuntimeParams = (response: RuntimeParamsAPIResponseType): RuntimeParamsListItemType[] =>
197197
Object.entries(response?.envVariables || {})
198198
.map(([key, value], index) => ({ key, value, id: index }))
199199
.sort((a, b) => stringComparatorBySortOrder(a.key, b.key))

0 commit comments

Comments
 (0)