Giter Site home page Giter Site logo

doc-prsr's People

Contributors

32penkin avatar artyorsh avatar greenfrvr avatar nnixaa avatar sergey-kozel avatar tibing-old-email avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

doc-prsr's Issues

Mark @private methods and properties and `private=true`

Currently, methods and properties marked with @private tag are not ignored and included into the final output. We need a way to control these methods/properties on the client side so that we can remove them or mark as private. So I propose to add a property private which will be resulted in true when @private tag exists on an element.
Code
image
Result
image

Bug: the following peace of code breaks the parser

  protected validateToken(module: string) {
    return map((res) => {
      const token = this.getConfigValue('token.getter')(module, res);
      if (!token) {
        const key = this.getConfigValue('token.key');
        console.warn(`NbEmailPassAuthProvider:
                          Token is not provided under '${key}' key
                          with getter '${this.getConfigValue('token.getter')}', check your auth configuration.`);

        throw new Error('Could not extract token from the response.');
      }
      return res;
    });
  }

monosnap 2018-01-24 16-05-25

Sometimes complex return or property types aren't parsed or parsed inrorectly

1 Menu Component, property type
image

/**
   * List of menu items.
   * @type List<NbMenuItem> | List<any> | any
   */
  @Input() items: NbMenuItem[];

2 User Component, property type

image

  /**
   * List of menu items for a user context menu (shown when clicked)
   * @type NbUserMenuItem[]
   */
  @Input() menu: NbUserMenuItem[] = [];

3 MediaBreakpoint service, return parameter

image

  /**
   * Returns a map of configured breakpoints for the theme
   * @returns {[p: string]: number}
   */
  getBreakpointsMap(): { [breakpoint: string]: number } {
    return this.breakpointsMap;
  }

More Documentation

This project looks interesting, but could you expand the README to better explain what it does and how to use it?

React Native: Method parser crashes

Method parser crashes if method documentation contains no arguments

Example

 * @method {() => void} focus - Requests focus for the given input or view. The exact behavior triggered
 * will depend on the platform and type of view.

Quick fix

To get rid of this I've simply modified methods.parser.js :)

function getParamType(param) {
  const splitElement = param.split(':')[1];
  var crudeParam = splitElement && splitElement.trim();
  return crudeParam && crudeParam.split(' ')[0].trim();
}

As you can see, I simply do nothing if split function returns undefined
But it also results in incorrect output

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.