Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

Enable docs for interface CallSignatures (Fixes #123) #189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/documenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export class Documenter implements vs.Disposable {
case ts.SyntaxKind.EnumMember:
sb.appendLine();
break;
case ts.SyntaxKind.CallSignature:
case ts.SyntaxKind.FunctionDeclaration:
case ts.SyntaxKind.MethodDeclaration:
case ts.SyntaxKind.MethodSignature:
Expand Down
3 changes: 2 additions & 1 deletion src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const supportedNodeKinds = [
ts.SyntaxKind.PropertySignature,
ts.SyntaxKind.Constructor,
ts.SyntaxKind.FunctionExpression,
ts.SyntaxKind.VariableDeclaration];
ts.SyntaxKind.VariableDeclaration,
ts.SyntaxKind.CallSignature];

export function emptyArray(arr: any[]) {
while (arr.length > 0) {
Expand Down