You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The types in files/dist/src/index.d.ts appear to be incompatible with React.
functionTest(){return<DraggableList/>}
'DraggableList' cannot be used as a JSX component.
Its instance type 'DraggableList<unknown, unknown, Component<Partial<TemplateProps<unknown, unknown>>, {}, any>>' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'Element' is not assignable to type 'ReactNode'.
Property 'children' is missing in type 'Element' but required in type 'ReactPortal'.
This is because on the DraggableList type definition, render() returns JSX.Element.
The types in
files/dist/src/index.d.ts
appear to be incompatible with React.This is because on the DraggableList type definition,
render()
returnsJSX.Element
.But on React's component types, it returns
ReactNode
.I suggest explicitly defining the return type of
render()
on src/index.tsx#L566.The text was updated successfully, but these errors were encountered: