@ephox/katamari
Advanced tools
Comparing version 2.1.13 to 2.2.1
@@ -9,2 +9,4 @@ export interface Option<T> { | ||
getOrDie: (msg?: string) => T; | ||
getOrNull: () => T | null; | ||
getOrUndefined: () => T | undefined; | ||
or: (opt: Option<T>) => Option<T>; | ||
@@ -11,0 +13,0 @@ orThunk: (makeOption: () => Option<T>) => Option<T>; |
@@ -70,2 +70,4 @@ import Fun from './Fun'; | ||
var noop = function () { }; | ||
var nul = function () { return null; }; | ||
var undef = function () { return undefined; }; | ||
var me = { | ||
@@ -81,2 +83,4 @@ fold: function (n, s) { return n(); }, | ||
}, | ||
getOrNull: nul, | ||
getOrUndefined: undef, | ||
or: id, | ||
@@ -123,2 +127,4 @@ orThunk: call, | ||
getOrDie: constant_a, | ||
getOrNull: constant_a, | ||
getOrUndefined: constant_a, | ||
or: self, | ||
@@ -125,0 +131,0 @@ orThunk: self, |
@@ -12,2 +12,4 @@ import { Option } from 'ephox/katamari/api/Option'; | ||
'getOrDie', | ||
'getOrNull', | ||
'getOrUndefined', | ||
'or', | ||
@@ -14,0 +16,0 @@ 'orThunk', |
{ | ||
"name": "@ephox/katamari", | ||
"version": "2.1.13", | ||
"version": "2.2.1", | ||
"description": "Basic data type library", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -11,2 +11,4 @@ import Fun from './Fun'; | ||
getOrDie: (msg?: string) => T; | ||
getOrNull: () => T | null; | ||
getOrUndefined: () => T | undefined; | ||
or: (opt: Option<T>) => Option<T>; | ||
@@ -100,2 +102,4 @@ orThunk: (makeOption: () => Option<T>) => Option<T>; | ||
var noop = function () { }; | ||
var nul = function() { return null; }; | ||
var undef = function() { return undefined; }; | ||
@@ -112,2 +116,4 @@ var me: Option<any> = { | ||
}, | ||
getOrNull: nul, | ||
getOrUndefined: undef, | ||
or: id, | ||
@@ -160,2 +166,4 @@ orThunk: call, | ||
getOrDie: constant_a, | ||
getOrNull: constant_a, | ||
getOrUndefined: constant_a, | ||
or: self, | ||
@@ -162,0 +170,0 @@ orThunk: self, |
@@ -13,2 +13,4 @@ import { Option } from 'ephox/katamari/api/Option'; | ||
'getOrDie', | ||
'getOrNull', | ||
'getOrUndefined', | ||
'or', | ||
@@ -15,0 +17,0 @@ 'orThunk', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
773469
13237