0.0.6 • Published 6 years ago

@zakkudo/jsdoc-immutable-plugin v0.0.6

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
6 years ago

jsdoc-immutable-plugin

Make working with Immutable types in jsdoc enjoyable.

Why use this?

  • Generates standard types for jsdoc so you can set allowUnknownTags to false
  • Includes links to all of the documentation for the different types on the official site
  • Includes short official descriptions from the official site inline

Install with:

yarn add --dev @zakkudo/jsdoc-immutable-plugin

Add to your jsdoc config with:

    "plugins": [
        "@zakkudo/jsdoc-immutable-plugin"
    ],

Included Types:

  • Immutable
  • Immutable.Map
  • Immutable.List
  • Immutable.OrderedMap
  • Immutable.Set
  • Immutable.OrderedSet
  • Immutable.Stack

Example (Tag your Maps)

/**
 * Generates an empty map. I'm not sure why you would do this...
 * @return {Immutable.Map} The new map
 */
export default function generateMap() {
    return fromJS({});
}

Example (Tag your Lists)

/**
 * Returns a list of names
 * @return {Immutable.List<String>} The generated list
 */
export default function getListOfNames() {
    return fromJS(['Jim', 'George', 'Bill']);
}
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago