foxact
Version:
React Hooks/Utils done right. For browser, SSR, and React Server Components.
11 lines (9 loc) • 572 B
TypeScript
interface TypeScriptHappyForwardRef {
<T, P = unknown>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactNode | null): (props: P & React.RefAttributes<T>) => React.ReactNode | null;
}
/** @see https://foxact.skk.moe/typescript-happy-forward-ref */
declare const typeScriptHappyForwardRef: TypeScriptHappyForwardRef;
/** @see https://foxact.skk.moe/typescript-happy-forward-ref */
declare const typescriptHappyForwardRef: TypeScriptHappyForwardRef;
export { typeScriptHappyForwardRef, typescriptHappyForwardRef };
export type { TypeScriptHappyForwardRef };