diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b23b06..d919e29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +### 4.1.1 - 2020-01-29 + +#### 🐞 Fixes + +- **[func]** Removed the generic constraint as it is too restrictive. + ## 4.1.0 - 2020-01-20 #### 🚀 Updates diff --git a/src/Predicate.ts b/src/Predicate.ts index 6857992..75abf0a 100644 --- a/src/Predicate.ts +++ b/src/Predicate.ts @@ -451,6 +451,6 @@ export function custom( return new Predicate('custom', defaultValue).custom(callback); } -export function func(defaultValue: T | null = null) /* infer */ { +export function func(defaultValue: T | null = null) /* infer */ { return new Predicate('function', defaultValue, true).nullable(); }