From a9923f3f93f8786388d84313666f0fc11113830f Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 14 Apr 2020 00:07:06 +0200 Subject: fix(doc): expose optionality in function params and class members (#4738) --- cli/doc/interface.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/doc/interface.rs') diff --git a/cli/doc/interface.rs b/cli/doc/interface.rs index 41ef0e720..0e4173d18 100644 --- a/cli/doc/interface.rs +++ b/cli/doc/interface.rs @@ -17,6 +17,7 @@ pub struct InterfaceMethodDef { pub name: String, pub location: Location, pub js_doc: Option, + pub optional: bool, pub params: Vec, pub return_type: Option, pub type_params: Vec, @@ -115,6 +116,7 @@ pub fn get_doc_for_ts_interface_decl( .source_map .lookup_char_pos(ts_method_sig.span.lo()) .into(), + optional: ts_method_sig.optional, params, return_type: maybe_return_type, type_params, -- cgit v1.2.3