From 28c590241913bcf4987641e691fcd3a3184a218b Mon Sep 17 00:00:00 2001
From: Daniel Huigens <d.huigens@protonmail.com>
Date: Tue, 27 Apr 2021 13:58:39 +0200
Subject: [PATCH] Fix JSDoc types

---
 src/crypto/public_key/dsa.js     | 2 +-
 src/crypto/public_key/elgamal.js | 2 +-
 src/message.js                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/crypto/public_key/dsa.js b/src/crypto/public_key/dsa.js
index 3ac8db82..be4f5567 100644
--- a/src/crypto/public_key/dsa.js
+++ b/src/crypto/public_key/dsa.js
@@ -38,7 +38,7 @@ import { isProbablePrime } from './prime';
  * @param {Uint8Array} p
  * @param {Uint8Array} q
  * @param {Uint8Array} x
- * @returns {Promise<{ r: Uint8Array, s: Uint8Array >}}
+ * @returns {Promise<{ r: Uint8Array, s: Uint8Array }>}
  * @async
  */
 export async function sign(hashAlgo, hashed, g, p, q, x) {
diff --git a/src/crypto/public_key/elgamal.js b/src/crypto/public_key/elgamal.js
index 5c67677d..5819324f 100644
--- a/src/crypto/public_key/elgamal.js
+++ b/src/crypto/public_key/elgamal.js
@@ -32,7 +32,7 @@ import { emeEncode, emeDecode } from '../pkcs1';
  * @param {Uint8Array} p
  * @param {Uint8Array} g
  * @param {Uint8Array} y
- * @returns {Promise<{ c1: Uint8Array, c2: Uint8Array >}}
+ * @returns {Promise<{ c1: Uint8Array, c2: Uint8Array }>}
  * @async
  */
 export async function encrypt(data, p, g, y) {
diff --git a/src/message.js b/src/message.js
index 1416aa17..9b29efd0 100644
--- a/src/message.js
+++ b/src/message.js
@@ -598,7 +598,7 @@ export class Message {
    *   keyID: module:type/keyid~KeyID,
    *   signature: Promise<Signature>,
    *   verified: Promise<Boolean>
-   * }>} List of signer's keyID and validity of signature.
+   * }>>} List of signer's keyID and validity of signature.
    * @async
    */
   verifyDetached(signature, keys, date = new Date(), config = defaultConfig) {