Skip to content
New issue

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

constructor type info #49

Merged
merged 11 commits into from
Dec 25, 2017
Prev Previous commit
Next Next commit
defaultValue becomes ? in signature
  • Loading branch information
Gilad Gray committed Dec 24, 2017
commit 94a57ada81b74fe6f3d9f25c22d4550d10fb0748
2 changes: 1 addition & 1 deletion src/plugins/typescript/typestring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function resolveSignature(sig: SignatureReflection): string {
[
param.flags.isRest ? "..." : "",
param.name,
param.flags.isOptional ? "?" : "",
param.flags.isOptional || param.defaultValue ? "?" : "",
": ",
resolveTypeString(param.type),
].join(""),
Expand Down