From 5cc1363a16b1ca2c538970c66254d80b4003cff3 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 30 Jun 2020 14:45:07 -0500 Subject: [PATCH] Add output type for the react:component generator --- gems/bess/lib/generators/templates/component.js.jsx.tsx.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gems/bess/lib/generators/templates/component.js.jsx.tsx.erb b/gems/bess/lib/generators/templates/component.js.jsx.tsx.erb index afb4a998..6be164e6 100644 --- a/gems/bess/lib/generators/templates/component.js.jsx.tsx.erb +++ b/gems/bess/lib/generators/templates/component.js.jsx.tsx.erb @@ -24,7 +24,7 @@ interface I<%= component_name %>Props { } -function <%= component_name %>(props:I<%= component_name %>Props) { +function <%= component_name %>(props:I<%= component_name %>Props) : JSX.Element { return ( <% attributes.each do |attribute| -%>