Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@radix-ui/react-polymorphic

Package Overview
Dependencies
Maintainers
8
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-polymorphic - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

7

dist/index.d.ts

@@ -11,3 +11,2 @@ import * as React from "react";

export type IntrinsicElement<E> = E extends ForwardRefComponent<infer I, any> ? I : never;
type NarrowIntrinsic<E> = E extends keyof JSX.IntrinsicElements ? E : never;
type ForwardRefExoticComponent<E, OwnProps> = React.ForwardRefExoticComponent<Merge<E extends React.ElementType ? React.ComponentPropsWithRef<E> : never, OwnProps & {

@@ -30,5 +29,7 @@ as?: E;

*/
<As extends keyof JSX.IntrinsicElements | React.ComponentType<any> = NarrowIntrinsic<IntrinsicElementString>>(props: As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
<As = IntrinsicElementString>(props: As extends '' ? {
as: keyof JSX.IntrinsicElements;
} : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
as: As;
}> : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
}> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
as: As;

@@ -35,0 +36,0 @@ }> : never): React.ReactElement | null;

{
"name": "@radix-ui/react-polymorphic",
"version": "0.0.12",
"version": "0.0.13",
"license": "MIT",

@@ -5,0 +5,0 @@ "source": "src/index.ts",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc