From 8066cc0709c05bcdcdf8079ba9751dc2b6510a6b Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 26 Feb 2020 15:58:12 +1100 Subject: [PATCH] add link to explain tslint issue with sfc and props type --- ts/components/session/PillDivider.tsx | 2 ++ ts/components/session/SessionHTMLRenderer.tsx | 1 + 2 files changed, 3 insertions(+) diff --git a/ts/components/session/PillDivider.tsx b/ts/components/session/PillDivider.tsx index 508e97719..f58394832 100644 --- a/ts/components/session/PillDivider.tsx +++ b/ts/components/session/PillDivider.tsx @@ -3,6 +3,8 @@ import React from 'react'; interface ReceivedProps { text: string; } + +// Needed because of https://github.com/microsoft/tslint-microsoft-contrib/issues/339 type Props = ReceivedProps; export const PillDivider: React.SFC = props => { diff --git a/ts/components/session/SessionHTMLRenderer.tsx b/ts/components/session/SessionHTMLRenderer.tsx index 24e7c4bc8..f7f493b7b 100644 --- a/ts/components/session/SessionHTMLRenderer.tsx +++ b/ts/components/session/SessionHTMLRenderer.tsx @@ -7,6 +7,7 @@ interface ReceivedProps { key?: any; } +// Needed because of https://github.com/microsoft/tslint-microsoft-contrib/issues/339 type Props = ReceivedProps; export const SessionHtmlRenderer: React.SFC = ({