From 8e37e8313e8a7c6726ac1d0ffc3ce78ab4806889 Mon Sep 17 00:00:00 2001 From: impulse Date: Tue, 15 Oct 2019 15:54:29 +0200 Subject: [PATCH] Fix return type for tsrfc / tsrfce fixes #86 --- snippets/ts-snippets.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/ts-snippets.json b/snippets/ts-snippets.json index ebe35fd..99429e6 100644 --- a/snippets/ts-snippets.json +++ b/snippets/ts-snippets.json @@ -64,7 +64,7 @@ "\t", "}", "", - "function ${1:${TM_FILENAME_BASE}}(): Props {", + "function ${1:${TM_FILENAME_BASE}}({}: Props): ReactElement {", "\treturn (", "\t\t
", "\t\t\t$0", @@ -86,7 +86,7 @@ "\t", "}", "", - "export default function ${1:${TM_FILENAME_BASE}}(): Props {", + "export default function ${1:${TM_FILENAME_BASE}}({}: Props): ReactElement {", "\treturn (", "\t\t
", "\t\t\t$0",