diff --git a/src/interface.rs b/src/interface.rs index 6d581378..e8062050 100644 --- a/src/interface.rs +++ b/src/interface.rs @@ -188,10 +188,8 @@ pub fn get_doc_for_ts_interface_decl( .as_deref() .map(|type_ann| TsTypeDef::new(parsed_source, &type_ann.type_ann)); - let type_params = maybe_type_param_decl_to_type_param_defs( - parsed_source, - None, - ); + let type_params = + maybe_type_param_decl_to_type_param_defs(parsed_source, None); let prop_def = PropertyDef { name, diff --git a/src/ts_type.rs b/src/ts_type.rs index d1bfeb26..3cd3f21f 100644 --- a/src/ts_type.rs +++ b/src/ts_type.rs @@ -440,10 +440,8 @@ impl TsTypeDef { .as_ref() .map(|rt| TsTypeDef::new(parsed_source, &rt.type_ann)); - let type_params = maybe_type_param_decl_to_type_param_defs( - parsed_source, - None, - ); + let type_params = + maybe_type_param_decl_to_type_param_defs(parsed_source, None); let prop_def = PropertyDef { name, js_doc,