Skip to content

Commit

Permalink
Fix spread types
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrHoroshih committed Nov 18, 2023
1 parent 76026df commit 19482f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spread/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function spread<Payload>(config: {
targets: {
[Key in keyof Payload]?: UnitTargetable<Payload[Key]>;
};
}): EventAsReturnType<Partial<Payload>>;
}): EventCallable<Partial<Payload>>;

export function spread<
Source,
Expand Down Expand Up @@ -40,7 +40,7 @@ export function spread<P>({
[Key in keyof P]?: Unit<P[Key]>;
};
source?: Unit<P>;
}): EventAsReturnType<P> {
}): EventCallable<P> {
for (const targetKey in targets) {
if (hasOwnProp(targets, targetKey)) {
const currentTarget = targets[targetKey];
Expand Down

0 comments on commit 19482f7

Please sign in to comment.