Skip to content

Commit

Permalink
remove type annotations in readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
frankchn committed May 11, 2021
1 parent 0fe7082 commit 512ad0a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@ app.post(
express.json(),
// Decrypt the submission
function (req, res, next) {
// `req.body.data` is an object fulfilling the DecryptParams interface.
// interface DecryptParams {
// encryptedContent: EncryptedContent
// version: number
// verifiedContent?: EncryptedContent
// }
/** @type {{responses: FormField[], verified?: Record<string, any>}} */
const submission = formsg.crypto.decrypt(
formSecretKey,
// If `verifiedContent` is provided in `req.body.data`, the return object
Expand Down Expand Up @@ -103,14 +96,6 @@ app.post(
express.json(),
// Decrypt the submission and attachments
async function (req, res, next) {
// `req.body.data` is an object fulfilling the DecryptParams interface.
// interface DecryptParams {
// encryptedContent: EncryptedContent
// version: number
// verifiedContent?: EncryptedContent
// attachmentDownloadUrls?: Record<string, string>
// }
/** @type {{content: DecryptedContent, attachments: DecryptedAttachments}} */
const submission = formsg.crypto.decryptWithAttachments(
formSecretKey,
// If `verifiedContent` is provided in `req.body.data`, the return object
Expand Down

0 comments on commit 512ad0a

Please sign in to comment.