Skip to content

Commit

Permalink
Fix unused strictNullCheck flag in return type of services
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyril Gandon committed Sep 26, 2016
1 parent 3145ed0 commit 79e6cf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Nimrod/Writers/ControllerToTypeScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,9 @@ public string GetMethodSignature(MethodInfo method)
var arguments = method.GetParameters()
.Select(param => $", {param.Name}: {param.ParameterType.ToTypeScript().ToString(options)}")
.Join("");
var returnType = method.GetReturnType().ToTypeScript().ToString(NeedNameSpace, true, true);
var returnType = method.GetReturnType().ToTypeScript().ToString(NeedNameSpace, true, StrictNullCheck);

return $"{method.Name}(restApi: {ns}IRestApi{arguments}, config?: {ns}IRequestConfig): {ns}IPromise<{returnType}>";
}

}
}
2 changes: 1 addition & 1 deletion grunt-nimrod/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-nimrod",
"description": "An .NET Controller to TypeScript Converter",
"version": "0.3.0",
"version": "0.3.1",
"homepage": "https://github.com/resgroup/nimrod",
"contributors": [
{
Expand Down

0 comments on commit 79e6cf3

Please sign in to comment.