@remote-ui/react
Advanced tools
Comparing version 4.5.2 to 4.5.3
import type { ReactNode, ComponentType, ReactElement } from 'react'; | ||
import type { RemoteComponentType, RemoteFragment } from '@remote-ui/core'; | ||
declare type PropsForRemoteComponent<T> = T extends RemoteComponentType<string, infer Props, any> ? { | ||
declare type PropsForRemoteComponent<T> = T extends RemoteComponentType<string, infer Props, any> ? Props extends Record<string, never> ? {} : { | ||
[K in keyof Props]: RemoteFragmentToReactElement<Props[K]>; | ||
@@ -5,0 +5,0 @@ } : never; |
{ | ||
"name": "@remote-ui/react", | ||
"version": "4.5.2", | ||
"version": "4.5.3", | ||
"publishConfig": { | ||
@@ -40,3 +40,3 @@ "access": "public", | ||
"@remote-ui/async-subscription": "^2.1.9", | ||
"@remote-ui/core": "^2.1.10", | ||
"@remote-ui/core": "^2.1.11", | ||
"@remote-ui/rpc": "^1.3.0", | ||
@@ -47,3 +47,3 @@ "@types/react": ">=17.0.0 <18.0.0", | ||
}, | ||
"gitHead": "20ec8d2a729aa1094c95f6d6e7f4dc8d958f6e88" | ||
"gitHead": "c6f8d0d916d6216bf0ede7bf5e31b8869b124b16" | ||
} |
@@ -9,3 +9,6 @@ import type {ReactNode, ComponentType, ReactElement} from 'react'; | ||
> | ||
? {[K in keyof Props]: RemoteFragmentToReactElement<Props[K]>} | ||
? Props extends Record<string, never> | ||
? // eslint-disable-next-line @typescript-eslint/ban-types | ||
{} | ||
: {[K in keyof Props]: RemoteFragmentToReactElement<Props[K]>} | ||
: never; | ||
@@ -12,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159301
2560
Updated@remote-ui/core@^2.1.11