@hhgtech/hhg-components
Version:
Hello Health Group common components
7 lines (6 loc) • 534 B
TypeScript
import React, { ComponentType } from 'react';
export declare function setDefaultClass<P extends {}>(Component: ComponentType<P>, defaultClass: string): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<(React.PropsWithoutRef<P> & React.RefAttributes<React.Component<P, any, any>> extends React.RefAttributes<infer Method> ? Method : never) | (React.PropsWithRef<P & {
children?: React.ReactNode;
}> extends React.RefAttributes<infer Method> ? Method : never)>> & {
classSelector: string;
};