@ephox/katamari
Advanced tools
Comparing version 2.1.12 to 2.1.13
@@ -28,3 +28,3 @@ export interface Option<T> { | ||
none: <T = any>() => Option<T>; | ||
from: <T>(value: T) => Option<T>; | ||
from: <T>(value: T) => Option<NonNullable<T>>; | ||
}; |
{ | ||
"name": "@ephox/katamari", | ||
"version": "2.1.12", | ||
"version": "2.1.13", | ||
"description": "Basic data type library", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -195,4 +195,4 @@ import Fun from './Fun'; | ||
/** from :: undefined|null|a -> Option a */ | ||
var from = function <T> (value: T) { | ||
return value === null || value === undefined ? <Option<T>>NONE : some(value); | ||
var from = function <T> (value: T | undefined | null): Option<NonNullable<T>> { | ||
return value === null || value === undefined ? NONE : some(value as NonNullable<T>); | ||
}; | ||
@@ -199,0 +199,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
772614