Skip to content

Commit

Permalink
update types in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
frankchn committed May 7, 2021
1 parent cbbe9ac commit 46d3593
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ app.post(
// encryptedContent: EncryptedContent
// version: number
// verifiedContent?: EncryptedContent
// attachmentDownloadUrls?: Record<string, string>
// }
/** @type {{content: DecryptedContent, attachments: DecryptedAttachments}} */
const submission = formsg.crypto.decryptWithAttachments(
Expand All @@ -117,7 +118,7 @@ app.post(
req.body.data
)

// If the decryption failed, submission will be `null`.
// If the decryption failed at any point, submission will be `null`.
if (submission) {
// Continue processing the submission

Expand Down

0 comments on commit 46d3593

Please sign in to comment.