Skip to content

Commit 8a48311

Browse files
committed
Fix build
1 parent da4498b commit 8a48311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Maybe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class Just<T> implements Maybe<T> {
217217

218218
toJSON(): T {
219219
const value: any = this.__value
220-
return value instanceof Date ? value.toJSON() : value
220+
return value instanceof Date ? (value.toJSON() as T) : value
221221
}
222222

223223
equals(other: Maybe<T>): boolean {

0 commit comments

Comments
 (0)