Skip to content

Commit

Permalink
fix: enforceExtended typings
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Sep 9, 2020
1 parent ef8f51c commit 8bcea6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vest",
"version": "2.2.0",
"version": "2.2.1",
"description": "Validation Test",
"main": "./vest.es5.js",
"browser": "./vest.es5.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/vest/src/typings/enforceExtended.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ interface ExtendedRules {
isURL: (...args: any) => IEnforceRules;
}

declare function enforceExtended(value: any): EnforceExtendMap<ExtendedRules>;
declare function enforceExtended(
value: any
): IEnforceRules<ExtendedRules> & EnforceExtendMap<ExtendedRules>;

export default enforceExtended;

0 comments on commit 8bcea6e

Please sign in to comment.