Skip to content

Commit f6aa0f2

Browse files
committed
fix types
1 parent 1c9ff9c commit f6aa0f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/yarnpkg-core/sources/Configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ export class Configuration {
20152015
}
20162016
}
20172017

2018-
async reduceHook<U extends Array<any>, V, HooksDefinition = Hooks>(get: (hooks: HooksDefinition) => ((reduced: V, ...args: U) => Promise<V>) | undefined, initialValue: V, ...args: U): Promise<V> {
2018+
async reduceHook<U extends Array<any>, V, HooksDefinition = Hooks>(get: (hooks: HooksDefinition) => ((reduced: V, ...args: U) => Promise<V> | V) | undefined, initialValue: V, ...args: U): Promise<V> {
20192019
let value = initialValue;
20202020

20212021
for (const plugin of this.plugins.values()) {

0 commit comments

Comments
 (0)