Fix ambigous typescript definitions
diff --git a/compiler/cpp/src/thrift/generate/t_js_generator.cc b/compiler/cpp/src/thrift/generate/t_js_generator.cc
index 96250c9..0e8da59 100644
--- a/compiler/cpp/src/thrift/generate/t_js_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_js_generator.cc
@@ -2851,12 +2851,12 @@
}
}
if (exception_types == "") {
- str += "callback?: (error: void, response: " + ts_get_type(tfunction->get_returntype()) + ")=>void): ";
+ str += "callback: (error: void, response: " + ts_get_type(tfunction->get_returntype()) + ")=>void): ";
} else {
- str += "callback?: (error: " + exception_types + ", response: " + ts_get_type(tfunction->get_returntype()) + ")=>void): ";
+ str += "callback: (error: " + exception_types + ", response: " + ts_get_type(tfunction->get_returntype()) + ")=>void): ";
}
} else {
- str += "callback?: (data: " + ts_get_type(tfunction->get_returntype()) + ")=>void): ";
+ str += "callback: (data: " + ts_get_type(tfunction->get_returntype()) + ")=>void): ";
}
if (gen_jquery_) {