diff --git a/src/components/FunctionDefinition.js b/src/components/FunctionDefinition.js index cee1ea8ab..82ccdd67e 100644 --- a/src/components/FunctionDefinition.js +++ b/src/components/FunctionDefinition.js @@ -21,7 +21,9 @@ const FunctionDefinition = ({ params, returnValue }) => { {params.map((param, i) => (
- {param.name}: + + {param.type.startsWith('...') ? `...${param.name}` : param.name}:{' '} + {param.type}