diff --git a/src/utils/template.ts b/src/utils/template.ts index 4f1de62ab6..59e156049b 100644 --- a/src/utils/template.ts +++ b/src/utils/template.ts @@ -54,14 +54,14 @@ export const template = (
${contractDoc.notice}
` : ""} @@ -107,8 +107,8 @@ export const renderParameterDocumentation = ( parameters: ParameterDocumentation[] ) => `${ - parameters.length > 0 - ? `Name | @@ -128,26 +128,26 @@ export const renderParameterDocumentation = ( .join("")}
---|
No parameters
" + : "No parameters
" }`; export const getMethodDetails = (devMethod?: Partial**Add Documentation for the method here**
" : Object.keys(devMethod) - .filter((key) => key !== "params") - .map((key) => { - const funcToGetTemplate = (devMethodDocTemplate as any)[key]; + .filter((key) => key !== "params") + .map((key) => { + const funcToGetTemplate = (devMethodDocTemplate as any)[key]; - if (!funcToGetTemplate) { - return '' - } - const funcParameter = (devMethod as any)[key] - const result = funcToGetTemplate(funcParameter) - return result - }) - .join("\n"); + if (!funcToGetTemplate) { + return ""; + } + const funcParameter = (devMethod as any)[key]; + const result = funcToGetTemplate(funcParameter); + return result; + }) + .join("\n"); - console.log('finalResult', finalResult) - return finalResult + console.log("finalResult", finalResult); + return finalResult; };