@@ -20,6 +20,13 @@ const defaultMethodConfig = {
2020 * Resolve docs and logic for the given language + framework config.
2121 *
2222 * @private
23+ * @param {Object } params
24+ * @param {Language } params.language
25+ * @param {string } [params.methodDocs]
26+ * @param {string } [params.methodLogic]
27+ * @param {Record<Language, { methodDocs: string | undefined, methodLogic: string | undefined } | Record<string, { methodDocs: string | undefined, methodLogic: string | undefined }>> } [params.methodConfig]
28+ * @param {string } [params.framework]
29+ * @returns {{ docs: string, logic: string } }
2330 */
2431const resolveDocsAndLogic = ( { language, methodDocs, methodLogic, methodConfig, framework } ) => {
2532 let docs = methodDocs ;
@@ -45,6 +52,11 @@ const resolveDocsAndLogic = ({ language, methodDocs, methodLogic, methodConfig,
4552 * Build indented method body.
4653 *
4754 * @private
55+ * @param {string } logic
56+ * @param {string } [preExecutionCode]
57+ * @param {string } [postExecutionCode]
58+ * @param {number } indentSize
59+ * @returns {string }
4860 */
4961const buildIndentedLogic = ( logic , preExecutionCode , postExecutionCode , indentSize ) => {
5062 let completeCode = logic ;
@@ -85,7 +97,7 @@ const buildIndentedLogic = (logic, preExecutionCode, postExecutionCode, indentSi
8597 * const preExecutionCode = "// Before handler registration";
8698 * const postExecutionCode = "// After handler registration";
8799 * const customMethodConfig={ openingTag: "{", closingTag: "}", indentSize: 6 };
88- * const methodConfig = {"java" : {methodDocs : methodDocs, methodLogic: methodLogic }};
100+ * const methodConfig = {"java" : {"quarkus": { methodDocs : methodDocs, methodLogic: methodLogic } }};
89101 * const framework = "quarkus";
90102 *
91103 * function renderMethodGenerator() {
0 commit comments