Skip to content

Commit

Permalink
Merge pull request #28 from NewFuture/patch-1
Browse files Browse the repository at this point in the history
fixed optional parameters in method
  • Loading branch information
RyanCavanaugh committed Aug 11, 2017
2 parents e27ec01 + f0080be commit 6125304
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,9 +669,7 @@ export function emit(rootDecl: TopLevelDeclaration, rootFlags = ContextFlags.Non
for (const param of member.parameters) {
if (!first) print(', ');
first = false;
print(param.name);
print(': ');
writeReference(param.type);
writeParameter(param);
}
print('): ');
writeReference(member.returnType);
Expand Down

0 comments on commit 6125304

Please sign in to comment.