From da0d41493eb6c016cdc9d2b12d36cbc64d3f0adc Mon Sep 17 00:00:00 2001 From: "andy.patterson" Date: Mon, 14 May 2018 15:08:49 -0400 Subject: [PATCH] fix: let MaybeT.orElse return any inner type --- src/transformer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformer.ts b/src/transformer.ts index b08e0dd..7a645c6 100644 --- a/src/transformer.ts +++ b/src/transformer.ts @@ -47,7 +47,7 @@ export class MaybeT> { )); } - orElse>(def: U | (() => U)): U { + orElse>(def: U | (() => U)): T | U { const map = getMap(this.value); return map(inner => maybe(inner)