diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/apidoc/parameterDefaults.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/apidoc/parameterDefaults.ts b/scripts/apidoc/parameterDefaults.ts index 7e02afc6..34264b05 100644 --- a/scripts/apidoc/parameterDefaults.ts +++ b/scripts/apidoc/parameterDefaults.ts @@ -130,8 +130,7 @@ function patchSignatureParameterDefaults( throw new Error('Unexpected parameter length mismatch'); } - signatureParameters.forEach( - (param, index) => - (param.defaultValue = parameterDefaults[index] || param.defaultValue) - ); + for (const [index, param] of signatureParameters.entries()) { + param.defaultValue = parameterDefaults[index] || param.defaultValue; + } } |
