mirror of https://github.com/eleith/emailjs.git
smtp/message: remove deprecated api
This commit is contained in:
parent
1e28b13f21
commit
17e2b7a7df
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue