Skip to content

normalizePackageRetryAttempts

normalizePackageRetryAttempts(packageRetryAttempts?): Record<string, number> | undefined

Defined in: packages/simply-cicd-core/src/sfPackages.ts:77

Normalizes package retry attempts configuration from either a key-count record or an array of alias:count strings into a Record<string, number>.

string[] | Record<string, number>

Record<string, number> | undefined

If any string entry does not match the <aliasOrId>:<count> format.

If any key is a reserved property name or any retry count is not a non-negative integer.