From f6529c4a6a94b0a0cce2895c1e5a38c6b68ecd21 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Small" Date: Wed, 20 Apr 2022 22:31:39 -0400 Subject: [PATCH] Add explicit children prop `@types/react` has been updated for react 18 to no longer include an implicit `children` prop on every `Component`. This means `` is no longer usable with the latest react typings because you must pass `children` to `` but TypeScript thinks the `` component doesn't accept any `children`. --- typings/react-flip-move.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/typings/react-flip-move.d.ts b/typings/react-flip-move.d.ts index 6e8a1b8..cd80c41 100644 --- a/typings/react-flip-move.d.ts +++ b/typings/react-flip-move.d.ts @@ -26,6 +26,11 @@ declare namespace FlipMove { type AnimationProp = AnimationPreset | Animation | boolean; interface FlipMoveProps { + /** + * The children to animate. Each child must have a unique key to work correctly. + */ + children?: React.ReactNode; + className?: string; /**