react-styleguidist icon indicating copy to clipboard operation
react-styleguidist copied to clipboard

Unknown type undefined

Open linjinze999 opened this issue 1 year ago • 1 comments

Current behavior Public method: options2 throw error Unknown type undefined

To reproduce

  /**
   * show
   * @public
   * @param options1 options1
   * @param options2 options2
   */
  public show = (options1:{}, options2?: {}) => {
    // pass
  };

Expected behavior

Public method support optional parameters

linjinze999 avatar Jan 07 '24 07:01 linjinze999

https://github.com/styleguidist/react-styleguidist/blob/master/src/client/rsg-components/Argument/ArgumentRenderer.tsx#L42C2-L42C61 incompatible with https://github.com/styleguidist/react-docgen-typescript/blob/master/src/parser.ts#L555

linjinze999 avatar Jan 11 '24 08:01 linjinze999