We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From the read.ts:
read.ts
if (isExportedClass(node)) { const classDeclaration = node as ts.ClassDeclaration; result = [ { type: 'class', name: classDeclaration.name != null ? classDeclaration.name.getText() : 'default', constructorParams: readConstructorParams(node as ts.ClassDeclaration), publicMethods: readPublicMethods(node as ts.ClassDeclaration) } ]; } if (isExportedFunction(node)) { const func = node as ts.FunctionDeclaration; result = [ { type: 'function', name: func.name != null ? func.name.getText() : 'anonymousFunction' } ]; }
If there are both a class and a function exported from a file the function will take precedence.
That's probably not what we want...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From the
read.ts
:If there are both a class and a function exported from a file the function will take precedence.
That's probably not what we want...
The text was updated successfully, but these errors were encountered: