Skip to content

Commit

Permalink
Update ts2fable.js
Browse files Browse the repository at this point in the history
Change quotes back.
  • Loading branch information
Joe Grund authored and alfonsogarciacaro committed May 29, 2017
1 parent 929762c commit 14fa28b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts2fable.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ function getType(type) {
case ts.SyntaxKind.FunctionType:
var cbParams = type.parameters.map(function (x) {
return x.dotDotDotToken ? "obj" : getType(x.type);
}).join(' -> ');
return '(' + (cbParams || 'unit') + ' -> ' + getType(type.type) + ')';
}).join(" -> ");
return "(" + (cbParams || "unit") + " -> " + getType(type.type) + ")";
case ts.SyntaxKind.UnionType:
if (type.types && type.types[0].kind == ts.SyntaxKind.StringLiteralType)
return "(* TODO StringEnum " + type.types.map(x=>x.text).join(" | ") + " *) string";
Expand Down

0 comments on commit 14fa28b

Please sign in to comment.