Skip to content

JSDoc can bug the plugin #2

@Shahor

Description

@Shahor

This code doesn't expose the marked as exposed function

'use strict'

// Using false will remove the entry from the object and will ease the roles retrieval
const Overrides = {
    zob : true,
}

/**
 * Filter rights according to their Boolean value
 * @param {Object} rights An object with rights to filter on
 * @return {Set} The list of rights available to this user
 */
// @test-export
function format(rights) {
    console.log('whatever')
}

module.exports = {}

But this one does

'use strict'

// Using false will remove the entry from the object and will ease the roles retrieval
const Overrides = {
    zob : true,
}

/**
 * Filter rights according to their Boolean value
 * @param {Object} rights An object with rights to filter on
 * @return {Set} The list of rights available to this user
 */
// @test-export
function format(rights) {
    console.log('whatever')
}

module.exports = {}

The diff between the two is the following:

diff --git a/toto.js b/Volumes/Work/euronews/api/src/utils/rights.js
index a7907b3..9901739 100644
--- a/toto.js
+++ b/Volumes/Work/euronews/api/src/utils/rights.js
@@ -2,7 +2,7 @@
 
 // Using false will remove the entry from the object and will ease the roles retrieval
 const Overrides = {
-//    zob : true,
+    zob : true,
 }
 
 /**
@@ -16,4 +16,3 @@ function format(rights) {
 }
 
 module.exports = {}

I tried looking at the src but I must admit I'm no good at reCAST 😆

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions