@itsjamie/esdoc-typescript-plugin

0.5.0 • Public • Published

ESDoc TypeScript Plugin (PoC)

This plugin is proof of concept

Install

npm install @itsjamie/esdoc-typescript-plugin

Config

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

Example

export class Foo {
  // without document, with initializer
  member: number = 10;
  
  // 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

Readme

Keywords

Package Sidebar

Install

npm i @itsjamie/esdoc-typescript-plugin

Weekly Downloads

24

Version

0.5.0

License

MIT

Unpacked Size

10.9 kB

Total Files

5

Last publish

Collaborators

  • itsjamie