@ahanapediatrics/ahana-fp
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -52,3 +52,5 @@ /** | ||
*/ | ||
ifPresent(consumer: (val: T) => void): void; | ||
ifPresent(consumer: (val: T) => void): { | ||
orElse: (f: () => void) => void; | ||
}; | ||
/** | ||
@@ -55,0 +57,0 @@ * Check whether the Optional is empty or not. |
@@ -102,3 +102,9 @@ "use strict"; | ||
consumer(this.value); | ||
return { | ||
orElse: () => { }, | ||
}; | ||
} | ||
return { | ||
orElse: (f) => f(), | ||
}; | ||
} | ||
@@ -105,0 +111,0 @@ /** |
{ | ||
"name": "@ahanapediatrics/ahana-fp", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "FP-friendly classes for Typescript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
47585
1236