use node 16 in ci

use `npm i` instead of `npm ci`
try fix ci script
and fix a doc comment
This commit is contained in:
Simon Laux
2022-05-07 03:49:58 +02:00
parent a006825376
commit 99d50615c3
3 changed files with 12 additions and 10 deletions

View File

@@ -57,7 +57,7 @@ impl CommandApi {
// Misc top level functions
// ---------------------------------------------
// Check if an email address is valid.
/// Check if an email address is valid.
async fn check_email_validity(&self, email: String) -> bool {
may_be_valid_addr(&email)
}

View File

@@ -14,7 +14,9 @@ interface Transport {
export class RawClient {
constructor(private _transport: Transport) {}
/**
* Check if an email address is valid.
*/
public checkEmailValidity(email: string): Promise<boolean> {
return (this._transport.request('check_email_validity', [email] as RPC.Params)) as Promise<boolean>;
}