This PR fixes a problem only related to Typescript.
The current Empty.d.ts declaration file doesn't allow you to pass other than an IIcon object to the icon prop.
This fix is needed in order to being able to pass a Jsx element to the icon prop of the Empty component, as per documentation (check the React code of the example with the 'Moving Van' image).
Without this fix we cannot use a static resource as icon/image for the Empty component.
Changelog
Changed
Added 'React.ReactNode' type to the 'icon' prop of EmptyProps in Empty.d.ts.
This PR fixes a problem only related to Typescript.
The current Empty.d.ts declaration file doesn't allow you to pass other than an IIcon object to the icon prop. This fix is needed in order to being able to pass a Jsx element to the icon prop of the Empty component, as per documentation (check the React code of the example with the 'Moving Van' image). Without this fix we cannot use a static resource as icon/image for the Empty component.
Changelog
Changed