diff --git a/CHANGELOG.md b/CHANGELOG.md index e5f51418..7ebc5f69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +### Added +- [Patch] Add type definitions for cancel callback. + ## [7.1.0] - 2019-06-23 ### Added diff --git a/index.d.ts b/index.d.ts index fd9dd7c3..89dcaee9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -108,6 +108,11 @@ declare module 'passable' { * Registers a completion callback for a specific field */ after: (fieldName: string, callback: (res: PassableNS.IValidationResult) => void) => PassableNS.IValidationResult; + + /** + * Cancels Async tests callbacks (after/done) + */ + cancel: () => PassableNS.IValidationResult; } export type IFunctionOrPromise = () => void | Promise<any>;