smtp/message: remove deprecated api

This commit is contained in:
Zack Schuster 2022-05-03 11:38:32 -07:00
parent 1e28b13f21
commit 17e2b7a7df
1 changed files with 0 additions and 11 deletions

View File

@ -247,17 +247,6 @@ export class Message {
return { isValid: true, validationError: undefined };
}
/**
* @public
* @deprecated does not conform to the `errback` style followed by the rest of the library, and will be removed in the next major version. use `checkValidity` instead.
* @param {function(isValid: boolean, invalidReason: (string | undefined)): void} callback .
* @returns {void}
*/
public valid(callback: (isValid: boolean, invalidReason?: string) => void) {
const { isValid, validationError } = this.checkValidity();
callback(isValid, validationError);
}
/**
* @public
* @returns {MessageStream} a stream of the current message