UNPKG

foxact

Version:

React Hooks/Utils done right. For browser, SSR, and React Server Components.

14 lines (12 loc) 936 B
declare namespace Foxact { type PropsWithRef<P> = Readonly<React.PropsWithRef<P>>; type PropsWithoutRef<P> = Readonly<React.PropsWithoutRef<P>>; type PropsWithChildren<P = unknown> = Readonly<React.PropsWithChildren<P>>; type ComponentProps<T extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>> = Readonly<React.ComponentProps<T>>; type CustomComponentProps<T extends React.ComponentType> = Readonly<React.ComponentProps<T>>; type ComponentPropsWithRef<T extends React.ElementType> = Readonly<React.ComponentPropsWithRef<T>>; type CustomComponentPropsWithRef<T extends React.ComponentType> = Readonly<React.ComponentPropsWithRef<T>>; type ComponentPropsWithoutRef<T extends React.ElementType> = Readonly<React.ComponentPropsWithoutRef<T>>; type CustomComponentPropsWithoutRef<T extends React.ElementType> = Readonly<React.ComponentPropsWithoutRef<T>>; } export { Foxact };