Skip to content

Commit 15fcb3a

Browse files
committed
fix: AppConfig.types - type refactor
1 parent f7c6dd7 commit 15fcb3a

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/Pages/Applications/DevtronApps/Details/AppConfigurations/AppConfig.types.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -294,17 +294,16 @@ export interface AppEnvDeploymentConfigQueryParamsType {
294294
compareWithManifestChartRefId?: number
295295
}
296296

297-
export type GetConfigDiffDataProps = Pick<DeploymentConfigCompareProps, 'appName' | 'envName' | 'type'> & {
298-
configType: AppEnvDeploymentConfigType
299-
compareName: string
300-
identifierId: number
301-
pipelineId: number
302-
}
303-
304-
export type GetDeploymentTemplateDataProps = Pick<DeploymentConfigCompareProps, 'type' | 'appName' | 'envName'> & {
305-
configType: AppEnvDeploymentConfigType
306-
compareName: string
307-
}
297+
export type GetConfigDiffDataProps = Required<
298+
Pick<DeploymentConfigCompareProps, 'appName' | 'envName' | 'type'> & {
299+
configType: AppEnvDeploymentConfigType
300+
compareName: string
301+
identifierId: number
302+
pipelineId: number
303+
}
304+
>
305+
306+
export type GetDeploymentTemplateDataProps = Omit<GetConfigDiffDataProps, 'identifierId' | 'pipelineId'>
308307

309308
export type GetManifestDataProps = Pick<DeploymentConfigCompareProps, 'type' | 'environments'> & {
310309
appId: string

0 commit comments

Comments
 (0)