react-styleguidist
react-styleguidist copied to clipboard
Unknown type undefined
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
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