Skip to content

Commit

Permalink
fix(assign): Fix internal type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
kofno committed May 28, 2018
1 parent 18b258d commit a2bf999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Just.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class Just<A> extends Maybe<A> {
other: Maybe<B> | ((a: A) => Maybe<B>)
): Maybe<A & { [k in K]: B }> {
const maybe = other instanceof Maybe ? other : other(this.value);
return maybe.map(b => ({
return maybe.map<A & { [k in K]: B }>(b => ({
...Object(this.value),
[k.toString()]: b
}));
Expand Down

0 comments on commit a2bf999

Please sign in to comment.