Add new api for interactive card details

Committed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
Konstantin Schaper
2023-09-21 11:26:41 +02:00
parent eabf5ebafd
commit 0c055ca6df
19 changed files with 337 additions and 172 deletions

View File

@@ -21,8 +21,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
import React from "react";
import { ComponentProps, JSXElementConstructor } from "react";
type ExtractProps<T> = T extends React.ComponentType<infer U> ? U : never;
/**
* @deprecated Use {@link ComponentProps} directly instead
*/
type ExtractProps<T extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>> = ComponentProps<T>;
export default ExtractProps;