@enterthenamehere/esdoc-flow-type-plugin

2.6.0-dev.1 • Public • Published

ESDoc Flow Type Plugin (PoC)

Use with updated EnterTheNameHere/esdoc-monorepo. Original esdoc is here.

This plugin is proof of concept.

Install

npm install @enterthenamehere/esdoc-flow-type-plugin

Config

{
  "source": "./src",
  "destination": "./doc",
  "plugins": [
    {"name": "@enterthenamehere/esdoc-flow-type-plugin", "option": {"enable": true}}
  ]
}
  • enable is default true

Example

export class Foo {
  // without document
  member: number;
  
  // without document
  method1(n: number): string {
  }
  
  // without @param and @return
  /**
   * this is method2.
   */
  method2(n: number): string {
  }
  
  // without type in @param and @return
  /**
   * this is method3.
   * @param n - this is param desc.
   * @return this is return desc.
   */
  method3(n: number): string {
  }
}

LICENSE

MIT

Author

Ryo Maruyama@h13i32maru

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @enterthenamehere/esdoc-flow-type-plugin

      Weekly Downloads

      1

      Version

      2.6.0-dev.1

      License

      MIT

      Unpacked Size

      12.3 kB

      Total Files

      4

      Last publish

      Collaborators

      • enterthenamehere