From 464d3ad19688cc6e5997246599b0ea9f889063c9 Mon Sep 17 00:00:00 2001 From: Hippolyte Pello Date: Wed, 15 Feb 2023 17:56:49 +0100 Subject: [PATCH] Update types in types/index.d.ts React.StatelessComponent has been removed from the react types (see https://stackoverflow.com/questions/44375759/how-should-i-declare-a-stateless-functional-component-with-typescript-in-react) The current types trigger an error: ``` node_modules/react-sortable-hoc/types/index.d.ts:108:11 - error TS2694: Namespace 'React' has no exported member 'SFC'. 108 | React.SFC

``` --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 770a77179..1de7882e4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -105,7 +105,7 @@ export type WrappedComponentFactory

= (props: P) => JSX.Element; export type WrappedComponent

= | React.ComponentClass

- | React.SFC

+ | React.FunctionComponent

| WrappedComponentFactory

; export function SortableContainer

(