@wordpress/components
Version:
UI components for WordPress.
10 lines • 891 B
TypeScript
/**
* @template {{}} TCurrentProps
* @template {{}} TNextProps
* @param {import('react').ForwardRefExoticComponent<TCurrentProps>} CurrentComponent
* @param {import('react').ComponentType<TNextProps>} NextComponent
* @param {string} namespace
* @param {(props: TCurrentProps) => TNextProps} adapter
*/
export function withNext<TCurrentProps extends {}, TNextProps extends {}>(CurrentComponent: import("react").ForwardRefExoticComponent<TCurrentProps>, NextComponent?: import("react").ComponentType<TNextProps>, namespace?: string, adapter?: (props: TCurrentProps) => TNextProps): import("react").ForwardRefExoticComponent<TCurrentProps> | import("./polymorphic-component").PolymorphicComponent<import("./polymorphic-component").ElementTypeFromViewOwnProps<TCurrentProps>, import("./polymorphic-component").PropsFromViewOwnProps<TCurrentProps>>;
//# sourceMappingURL=with-next.d.ts.map